G12Consult
Programmer
I need to query a system versioned table which will group by date but I don't know what to GROUP BY
so the code above without the group by gives me a total of 148752
What I want is something like:
09/01/2019 45500
10/01/2018 28242
11/01/2018 45421
...
Code:
SELECT COUNT(*) 'UNPROCESSED'
FROM [PROCESSING].[xxx].[MASTER_xxx_FUTURE_STATE_BUILD]
FOR SYSTEM_TIME BETWEEN '2019-01-09 16:59:00.000' AND '2019-01-14 16:59:00.000'
WHERE DM_RecordStatus = 0]SELECT COUNT(*) 'UNPROCESSED'
GROUP BY ??
so the code above without the group by gives me a total of 148752
What I want is something like:
09/01/2019 45500
10/01/2018 28242
11/01/2018 45421
...