I know it is the SQL forum, that's why I'm posting the question (as my query is being done in SQL) The database that stores the data that I'm retrieving is Sybase.
I've tried the solution you suggested:
WHERE (RECORD_TYPE = 'INTERVAL')
AND DATE_TIME BETWEEN
CONVERT (varchar(8)...
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.