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-00923: FROM keyword not found where expected

ForSlyOct 15 2019 — edited Oct 15 2019

I am getting the above error message on the below query. anyone  with any idea on where I am going wrong? I am using oracle 12.2.1. database. sqL Developer says issue is around the second select statement.

Select e.*,j.*,

Case when prev_JOB_NAME <> JOB_NAME and prev_e.NUMBER <> e.NUMBER

Then 'Changed'

Else 'Not changed'

end as result1

(Select e.*, j.*,

Lag(j.JOB_NAME)

over (partition by e.CAN_NUM, e.P_NUMBER

    Order by e.DT) as prev_JOB_NAME

Lag(e.NUMBER)

over (partition by e.PI_CANDIDATE_NUM, e.P_NUMBER

    Order by e.DT) as  prev.NUMBER

From temp_F e,

temp_D j) e,j

This post has been answered by RogerT on Oct 15 2019
Jump to Answer
Comments
Post Details
Added on Oct 15 2019
15 comments
5,736 views