ii128,
SELECT name, datediff("s", start_time, stop_time) /3600, count(name)
FROM usertime group by name
Count is an aggregate function that only returns one value. Try removing it and let us know what happens.
If it still has problems, try putting "as TotalTime" after the datediff call. I know that in QBE view, if you omit an Alias it supplies 'Expr1' as your alias. I'm not sure about running it in code.
John
Use what you have,
Learn what you can,
Create what you need.