You are here: diff between 2 DATETIMEs, SUMmed & GROUPed BY project « PHP Programming Language « IT news, forums, messages
diff between 2 DATETIMEs, SUMmed & GROUPed BY project

Posted by Jim Michaels on 11/18/01 11:42

SELECT id,name, prj,SUM(TIMEDIFF(end_time,start_time)) AS elapsed
FROM work
group by name,prj;

The problem is, I need elapsed in a datetime format, and SUM truncates to
integer hours.

Is there no way to do this?
I just want the group sums as hours, minutes, dats, months, years.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация