Hello,
I have a quick question.
In mySQL you can do the following, where messages.date is a datetime column:
Code:
SELECT HOUR( date ) AS time FROM messages;
I would like to select all columns from messages, where HOUR( date ) = 1 for example. How do I do this? Also, how would I issue a count?
ex in english:
"Select the column count AS total FROM messages WHERE HOUR( messages.date ) is 1"
Thanks in advance for your help.
Alexandre