I have a table trans_hist in MS Access program where time is stored in short Date format \"HH:MM\" ex:
[![Image][1]][1]
Now I have created a query which tell
I hope, this SQL query helps:
SELECT T.UID, CSTR(total_hours + INT(total_min / 60)) + ":" + CSTR(total_min Mod 60) as result FROM (SELECT UID, SUM(HOUR(TH.time_elapsed)) AS total_hours, SUM(MINUTE(TH.time_elapsed)) AS total_min FROM trans_hist AS TH GROUP BY UID) AS T