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!

ORA-00907: missing right parenthesis

c6ae4b90-c7c7-47b7-bdd6-2868942f9882Mar 17 2016 — edited Mar 17 2016

Hi guys,

I got a Problem with this Statement:

  select distinct (machineid), jobid, valid_from, DATE_ADD('1980-01-01 00:00:000', INTERVAL last_modified SECOND)

     from dsstaff

          where clientno = '01' and whole_day = 'n' and invalid_from <= '2100-02-01' order by machineid, jobid, valid_from DESC, DATE_ADD('1980-01-01 00:00:000', INTERVAL last_modified SECOND)

I check now many possible Options, but I dont have an AS in my query, nor do I have a ORDER BY in a subquery as stated in many different sources as the issue of this exception. The Problem is possibly the DATE_ADD function, but I dont see a mistake in it last_modified is a value that is added to 1980-01-01.

Would really appreciate if someone could have a look on it.

Thanks a lot in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2016
Added on Mar 17 2016
12 comments
2,113 views