[EMAIL PROTECTED] wrote:

> We keep a timecard database and I was just asked how much time had been charged to a 
>particular project code.  No problem says I and did the following:
> 
> select sum(worktime) from timecard where tcacct=project;
> 
> The answer came back 182.  Then I was asked who had spent time on the project.
> 
> the query was:
> 
> select sum(worktime),user from timecard where tcacct=project group by user;
> 
> the answer was:
> 
> 8.00    user1
> 14.00   user2
> 160.00  user 3
> 
> Now, where I went to school, this adds up to 184!
> 
> Suggestions?
> 
> 

Pick a better school?

-- 
Gerald L. Clark
[EMAIL PROTECTED]


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to