How do I express "now minus 30 minutes" in an Oracle SQL WHERE, so that I can compare it with a stored timestamp?
The solution is either the dateadd()
function or
systimestamp - INTERVAL '30' minute(1)
where yourTimestamp >= sysdate - 1/48
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With