Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Count Distinct employees between two dates

housetiger77Jul 19 2012 — edited Jul 23 2012
I'm having a headache trying to figure this out and I can't seem to find the correct way of doing it. Any help would be greatly appreciated.

I'm needing to get a distinct number count of weekly employees by month that have worked or received pay for the pay period that includes the 12th of the month. The employees should only be counted once per month even though they might have worked and gotten paid during the pay period that includes the 12th of the month. I will give below the column names an example of the data.

emp no_
00001

pay type_
week

pay period start date_
01-09-12

pay period end date_
01-15-12

pay date_
01-12-12

work date_
01-11-12
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2012
Added on Jul 19 2012
13 comments
795 views