I would only like to get only the data from the last hour. the query should be something like that…
SELECT some_date_related_data FROM some_table
WHERE time > now() - (1hour)
how can i achieve that?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you used
NOW(), I’m guessing this is about MySQL. Then I’d suggest reading the manual 🙂http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html
For MySQL:
or
For MS-Access: