I have a column called submit_timestamp
which holds a UNIX_TIMESTAMP(
), what I want to do now is do a SELECT
query and within the WHERE
clause ensure the submit_timestamp
equals or is within X number of days.
(Demonstration purposes only):
SELECT id
FROM submissions
WHERE submit_timestamp = 'EQUALS OR IS WITHIN X NUMBER OF DAYS FROM submit_timestamp'
AND id = 2
All help appreciated.
Thanks.