Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Discoverer Calculation Help

Status
Not open for further replies.

Texanite

Technical User
Aug 21, 2002
75
US
I have a Discoverer report for employees who are on automatic bank deposit and those who get physical checks. The report is built and returning the information I need except, on those with automatic deposit who have their check deposited to more than one account, the report is bringing back a record for each deposit. I need to get only one record for each payroll period. A TAR was logged to get some help and the result was to use the following COUNT DISTINCT command: COUNT_DISTINCT(n) OVER (PARTITION BY expr1 ORDER BY expr2 RANGE BETWEEN expr3 AND expr4). However, nobody in my office knows what to do with it. I am assuming the (n) behind Count_Distinct is where I should insert the effective date field, But I am looking for only one employee per effective date. how do I express that?

Thanks,
Texanite
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top