this query will retrieve all records for the last 7 days.
SELECT * FROM STATISTICS WHERE TIMESTAMP > DATEADD('DAY',-7, NOW())
How can I modify the request to include recordings from midnight 7 days ago?
ex.
SELECT DATEADD('DAY',-7, NOW())
Gives: 2013-09-25 13: 46: 54.372
But I would like: 2013-09-25 00: 00: 00.000
date sql h2
user955732
source share