Quantcast
Channel: Toad for Oracle
Viewing all articles
Browse latest Browse all 4009

Forum Post: RE: SQL Logic for Time Difference

$
0
0
P.S. if you need to find a date 72 hours ago, sysdate-3 will work, but it will be to the exact second. So if sysdate is 06 June 2016 at 16.25 and 12 seconds then 03 June 2016 at that exact same time is your 3 days ago. If you just want any time on the day that was three days ago, then you should use trunc(sysdate)-3 instead. HTH Cheers, Norm. [ TeamT ] -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

Viewing all articles
Browse latest Browse all 4009

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>