I currently have a query that runs daily at night to capture interval data from that day.
The syntax I use to capture this data is:
WHERE (RECORD_TYPE = 'INTERVAL')
AND DATE_TIME BETWEEN
CONVERT (varchar(8), GETDATE(),1) + ' 00:00:00' AND
CONVERT (varchar(8), GETDATE(),1) + ' 23:59:00'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.