I have a database with a timestamp field called DATECREATED and I am trying to run a select statement to retrieve all records where current time is at least 60+ minutes from timestamp
Eg.
timestamp is 2012-10-29 12:08:11.
I want to retrieve a record only if it has passed 60 minutes from the timestamp above. So if the time is 13:09, or 15:09, it should be retrieved. If the time is 12:15, it should return 0;
Any help would be greatly appreciated as other answers here haven`t helped so far.
Thanks.
See this SQLFiddle