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!

Problem with multiple "not in " conditions in query

733894Nov 12 2009 — edited Nov 12 2009
I am getting the following error when trying to execute a query with multiple 'not in' conditions. There are about 900 values in each condition (Total 3 conditions). I am quite sure that there is not problem with syntax as it is working when few of the values in the 'not in' condition are removed.

ORA-00600: internal error code, arguments: [KGHAL02],[0x0],[],[],[],[],[],[]

The query goes like this.

Select specimen_id, specimen_name from specimen,entity_type where specimen.entity_type_code = entity_type.entity_type_code where entity_type.entity_type = 'Sample' and specimen.specimen_id
not in ('A','B'...............) and specimen.specimen_id not in ('X','Y',............) and specimen.specimen_id not in ('AA','BB');

There are multiple not in conditions on same column as oracle does not support more than 1000 values in 'in' or 'not in' condition
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2009
Added on Nov 12 2009
8 comments
566 views