If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
How do I write a select statement that will return only the records created in the last 10 minutes. I have a field called dt_created that is a datetime type.
select * from timedif where MINUTE( ts ) >= ( MINUTE (current timestamp) -10);
Regards,
Chalam N
Quote:
Originally posted by bryonb
How do I write a select statement that will return only the records created in the last 10 minutes. I have a field called dt_created that is a datetime type.