Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    1

    Unanswered: query recs created in the last 10 minutes...

    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.

  2. #2
    Join Date
    Jul 2003
    Location
    india
    Posts
    15

    Re: query recs created in the last 10 minutes...

    HI,

    try with this query

    select * from timedif where MINUTE( ts ) >= ( MINUTE (current timestamp) -10);

    Regards,
    Chalam N



    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •