I have a database table 'email_log'
which would be filled with information as:
user, subject and opened (as datetime)
What I need is a new query from which I can see how many rows contain the column 'opened' between 08:00
and 09:00
.
What I had didn't work:
SELECT count(*) as count FROM email_log WHERE opened BETWEEN '00:08:00' AND '00:09:00';
Does anyone know the trick?