G
Guest
Friends,
I have a simple SQL statement in my querybuilder. It goes like this:
SELECT operations_code, operations_duration
FROM dpr_operations_report_line
WHERE id = @id
The result is like this:
operations_code operations_duration
O 02:05:00
O 00:10:00
T 21:44:00
The duration field type is smalldatetime. The challenge is that I want to
sum the operation_duration grouped by the operations_code to get the total
time pr operations code. The SUM functions does not be applied on a
smalldatetime field. Is there a workaround?
/Leif S.
I have a simple SQL statement in my querybuilder. It goes like this:
SELECT operations_code, operations_duration
FROM dpr_operations_report_line
WHERE id = @id
The result is like this:
operations_code operations_duration
O 02:05:00
O 00:10:00
T 21:44:00
The duration field type is smalldatetime. The challenge is that I want to
sum the operation_duration grouped by the operations_code to get the total
time pr operations code. The SUM functions does not be applied on a
smalldatetime field. Is there a workaround?
/Leif S.