Skip to Main Content

Analytics Software

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!

How To Use IN Operator In Filter

PapaiJul 25 2014 — edited Jul 28 2014

Dear Gurus,

         I have a File To RT interface. As a filter condition I have used the below(like) code:-

ARG.CENTRE_CODE_COLUMN = IN (select center_code from table_center_codes; )

but it is throwing ORA-00936: missing expression error.

What to do? Please advise.

At least please let me know how shall I implement my requirement? My requirement is:-

Suppose Src File needs to filtered based on its center code value  AA,BB,CC,DD,EE....etc.

i.e  ARG.CENTRE_CODE_COLUMN='AA'  OR ARG.CENTRE_CODE_COLUMN='BB'  OR ARG.CENTRE_CODE_COLUMN='CC'

Instead of using this long code I have stored these AA,BB...LookupValue (Filter Codes value)  in a separate table table_center_codes .

and use the code ARG.CENTRE_CODE_COLUMN = IN (select center_code from table_center_codes; ) I.E tried to get the Filter condition value

dynamically from the table_center_codes table.

But it fails.

Thanks

Papai

NB:- PLEASE LET ME KNOW YOU HAVE ANY CONFUSION ABOUT THE REQUIREMENT.

This post has been answered by Agostinho on Jul 25 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2014
Added on Jul 25 2014
4 comments
207 views