M
matt shudy
Hi,
I want to display some db results, i am using fp 2002 and
mysql for the db. I am trying to write a sql statement
that will display names and the sum of hours worked, then
order it by the sum of the hours, but it doesn't like the
order by sum command, any help?
This is what i wrote:
SELECT Name, SUM(Hours) FROM Hours
GROUP BY Name
ORDER BY SUM(Hours)
Thanks,
Matt Shudy
I want to display some db results, i am using fp 2002 and
mysql for the db. I am trying to write a sql statement
that will display names and the sum of hours worked, then
order it by the sum of the hours, but it doesn't like the
order by sum command, any help?
This is what i wrote:
SELECT Name, SUM(Hours) FROM Hours
GROUP BY Name
ORDER BY SUM(Hours)
Thanks,
Matt Shudy