By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
EmployeeId | TotalMargin | TotalPoint | TotalOLC | TotalTrip |
---|---|---|---|---|
1 | 08:00:00.0000000 | 24 | 4 | 0 |
2 | 04:00:00.0000000 | 12 | 0 | 0 |
3 | 04:00:00.0000000 | 12 | 6 | 12 |
Warning: Null value is eliminated by an aggregate or other SET operation.
Msg 1087 Level 15 State 2 Line 7
Must declare the table variable "@Overtime".