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!

unexpected end of SQl command error ORA-921

575330Sep 10 2007 — edited Sep 10 2007
I wrote this query as part of a larger query, however I can't seem to figure out why this ection gives me the ORA-921 error after the comparison expression (underlined below).


with

s2n as (
select distinct employeefk, policyref, advicename
from source
where
(payrollfk = (select payrollfk1 from payroll_1) or payrollfk = (select payrollfk2 from payroll_2)) and
displaysequence >= 0
group by employeefk, displaysequence, policyref, classificationtype, advicename, payrollfk)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2007
Added on Sep 10 2007
5 comments
11,408 views