kentwoodjean
Technical User
Have query where source table is the result of imported text file. "Duration" column is formated as text (14:22:02)and represents Hours, min & sec. In order to convert this to a number that can be used in calculation for reports, used the hour, minute, and second function in my query.
I want to create a report that will show the combined total per date in hrs, min, sec for each activity listed. Trying to determine the best way to do this. Do I combine the 3 columns into 1 and format using hh:nn:ss and if so, will 60 sec roll to mins, 60 min to hours, and will the hours continue to add beyond 24? If this will work, I do not know how to combine the 3 columns, can do 2 but not 3. If anyone has a better idea on this, please let me know.
Here is my SQL for the query:
SELECT [IWR Mo].ToDate, [IWR Mo].Team, [IWR Mo].Reason, [IWR Mo].TimesUsed, [IWR Mo].Duration, Minute([Duration]) AS [Min], Hour([Duration]) AS Hr, Second([Duration]) AS Sec
FROM [IWR Mo]
GROUP BY [IWR Mo].ToDate, [IWR Mo].Team, [IWR Mo].Reason, [IWR Mo].TimesUsed, [IWR Mo].Duration;
I want to create a report that will show the combined total per date in hrs, min, sec for each activity listed. Trying to determine the best way to do this. Do I combine the 3 columns into 1 and format using hh:nn:ss and if so, will 60 sec roll to mins, 60 min to hours, and will the hours continue to add beyond 24? If this will work, I do not know how to combine the 3 columns, can do 2 but not 3. If anyone has a better idea on this, please let me know.
Here is my SQL for the query:
SELECT [IWR Mo].ToDate, [IWR Mo].Team, [IWR Mo].Reason, [IWR Mo].TimesUsed, [IWR Mo].Duration, Minute([Duration]) AS [Min], Hour([Duration]) AS Hr, Second([Duration]) AS Sec
FROM [IWR Mo]
GROUP BY [IWR Mo].ToDate, [IWR Mo].Team, [IWR Mo].Reason, [IWR Mo].TimesUsed, [IWR Mo].Duration;