Hi
I have a need list a amount pr. week but since the date format is quite tricky I can't get it to work.
This is an sql to get the tickets.
The result of the query should be something like this.
week amount
30 12
31 13
32 14
Thanks.
LHG
I have a need list a amount pr. week but since the date format is quite tricky I can't get it to work.
This is an sql to get the tickets.
Code:
SELECT ticketid
CONVERT(VARCHAR, DATEADD(ss, TIME_WORK_START - DATEDIFF(ss, GETDATE(), GETUTCDATE()), '1970-01-01 00:00'), 120),
from table
The result of the query should be something like this.
week amount
30 12
31 13
32 14
Thanks.
LHG