
Originally Posted by
r937
try this --
Code:
SELECT SEC_TO_TIME(
TIME_TO_SEC( CURRENT_TIMESTAMP ) -
TIME_TO_SEC( SUM(chemicalweighing_dateEntry) )
) AS aging_time
that would make perfect sense
if only it were possible to sum datetimes!!! (hint: it isn't)
just what exactly does "sum of chemicalweighing_dateEntry" actually mean?
I tried it:
Code:
SELECT SEC_TO_TIME(
TIME_TO_SEC( CURRENT_TIMESTAMP ) -
TIME_TO_SEC( SUM(chemicalweighing_dateEntry) )
) AS aging_time FROM kanban_data;
the output display is: NULL
Thank you
Bookmarks