Oracle - display all within next 12 months -


i trying pull data within next 12 months only. thing can find online "addmonths" can't it, not sure if it's because date in start_date column dd/mm/yyyy?

select number, start_date wo_table start_date between sysdate , addmonths(sysdate,12)  

select "number", start_date   wo_table  start_date between sysdate                       , add_months( sysdate, 12 ); 

or

select "number", start_date   wo_table  start_date between sysdate                       , sysdate + interval '1' year; 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -