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

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

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -