Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

date_sub() giving error

user540571Feb 6 2011 — edited Feb 6 2011
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2011
Added on Feb 6 2011
5 comments
11,456 views