RE: How to count records w/o counting duplicates by week, month, or ye

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



All very helpful... If I have a follow-up I'll post back..
--
Thanks in advance!
**John**


"John" wrote:

I have a table with payroll data. I have an employe ID, a week ending date
(Sunday), and hours worked on Sun, Mon, Tue, ... Sat. What I need is a query
that counts the number of employees, and gives total hours worked on what
days. The catch is that overtime and double-time hours are shown on a
different record, with the same week ending date. If I do a simle count of
employee ID, I get 2x the number of real employees. Not all employees work
over time or double-time.

Fields:
WeDte: week ending date
EmpID: Employee ID (text)
Mon: Monday Hours
Tue: Tuesay Hours
Etc. through "Sat: Saturday Hours"
WgRate: Employee Wage Rate

What I would like to do is to group the qery by week, month, quarter, or
year to get the total hours, salary cost, and employee count. The hours and
salary cost is not an issue, but counting the first EmpID in the month, and
then not counting it until the next month is killing me!

--
Thanks in advance!
**John**
.



Relevant Pages

  • Re: Confederate Flag
    ... a significant number of blacks, ... employee who promoted the Confederacy. ... What about people who fly the US Flag? ... based on reapportionment as a result of counting them. ...
    (rec.sport.football.college)
  • Re: Confederate Flag
    ... a significant number of blacks, I would probably fire an ... employee who promoted the Confederacy. ... based on reapportionment as a result of counting them. ...
    (rec.sport.football.college)
  • Re: Confederate Flag
    ... a significant number of blacks, I would probably fire an ... employee who promoted the Confederacy. ... based on reapportionment as a result of counting them. ...
    (rec.sport.football.college)
  • RE: Counting specific elements in a XML object
    ... Counting specific elements in a XML object ... Is there some perl module out there that can help me get the number of ...
    (perl.beginners)
  • RE: How to count records w/o counting duplicates by week, month, or ye
    ... Another method would be to create a normalizing query, to get your data in a ... added ability of summing hours by month, not the month of the WeDte. ... employee ID, I get 2x the number of real employees. ... then not counting it until the next month is killing me! ...
    (microsoft.public.access.queries)