sql - Oracle: Get data for only the past half year -


i writing query in have data last half year: data current date , half year ago. found 1 year in sql it's not working in oracle:

select ... ... date > dateadd(year,-1,getdate()) 

the equivalent function dateadd add_months

select ... ... date > add_months(sysdate, -6) 

Comments

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -