[thelist] sql query for sum of timediff

Canfield, Joel JCanfield at PacAdvantage.org
Thu Jun 1 18:33:41 CDT 2006


> select firstname, lastname, sum(timediff(endtime,starttime))
> from presence
> where starttime between '2006-05-31 0:00:00' and '2006-05-31 23:59:59'
> group by firstname, lastname

this returns zero sums in places I know there to be data (names are
unique)

still working on it



More information about the thelist mailing list