date_sub() giving error
Hi, I am trying to run the following sql , i am getting
Here is my sql
select * from_achvmt where achvmt_dt >= DATE_SUB(curdate(),INTERVAL 15 DAY);
ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
Error at Line: 1 Column: 89
why i am getting this error. My oracle version is 11g. I want to pick the data from table from last 15 days. whats wrong in my query