Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2010
    Posts
    2

    Unanswered: Selecting Records from today

    What is the best way to select records from only today's date? There is one column in the table that is a timestamp data type. Need something like:
    SELECT * FROM ORDERS WHERE TIMEPLACED = CURRENT_DATE;

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    Try:

    SELECT * FROM ORDERS WHERE TIMEPLACED between timestamp(current date,'00:00:00') and timestamp(current date,'24:00:00')

    Andy

  3. #3
    Join Date
    Aug 2010
    Posts
    2

    Wink

    That worked perfectly. Thanks..

Posting Permissions

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