DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: I am interested in the time but not date

  1. #1
    Join Date
    Mar 2004
    Posts
    55

    Question I am interested in the time but not date

    I have a table with a date timestamp.

    I wish to find all records that are between sat 0600hr and 1800hrs
    regardless of the date.

    I tried (TO_DATE('HH:MI')) however that obviously does not work.

    Any help would be appreciated.


    Thanks

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool

    Did you try:

    select ...
    where to_char(date_col,'HH24:MI')
    between '06:00' and '18:00';

    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

Posting Permissions

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


Click Here to Expand Forum to Full Width