Using SQL Server 2005
Table1
ID Time
001 060000 (HHMMSS)
001 080000
002 100000
002 090000
002 120000
.....
Intime, Outtime datatype is varchar.
I want to calculate the total time group by id
How to calculate the total Hours.
Need Query Help
based on the data give, throw away the 0000 at the end, change to int, SUM
If you have minutes but no seconds, you can modify this to throw away 00 at the end, split into hours + minutes and sum that…
The problem is: