Back
You can use the following query to get all the rows in a specified date range and time range.
SELECT * FROM myTable WHERE CAST(ReadDate AS DATETIME) + ReadTime BETWEEN '2020-09-10 6:00PM' AND '2020-09-22 10:00AM'
The above will show data as per the specified date.
Are you interested to learn SQL in detail? Join this SQL Training course by Intellipaat.
31k questions
32.8k answers
501 comments
693 users