----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 5:31 AM
Subject: possible bug in sum() function
> 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!
>
Try another school perhaps?
---------------------------------------------------------------------
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