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

Thread: How to count the time diff?

  1. #1
    Join Date
    Sep 2001
    Posts
    99

    How to count the time diff?

    I have a table with a date type column.I want to query the record that less more 3 hours,how to do?
    select * from tablename where systime - ltime > 3
    ?
    please help.
    ocean

  2. #2
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Code:
    SELECT * FROM table_name WHERE column_name > SYSDATE-1/8;
    Sanjay G.
    Oracle Certified Professional 8i, 9i.

    "The degree of normality in a database is inversely proportional to that of its DBA"

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