Garayed.com  

Go Back   Garayed.com > Oracle
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-2007, 11:58 PM
Mark Harrison
 
Posts: n/a
Default best way to compare date, "more than one minute old"

I have a table with a DATE field called "started". What's the best
way to search for rows where started is less than systime - 1 minute?

Here's what I'm using now. Is there a better way?

select * from mytable
where started<sysdate-(1.0/1440); -- 1440 minutes per day

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:44 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.