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!

Newbie: Get a list of values that are NOT in a table column

user455466Oct 31 2012 — edited Oct 31 2012
Hi,


Given a list of values, I can get which are in a table column:

SQL> desc a
Nombre +Nulo? Tipo
----------------------------------------- -------- ----------------------------
COL1 NUMBER(38)

SQL> select * from a;

COL1
----------
1
2
3
4
5

SQL> select * from a where col1 in (1,3,4, 7, 9, 11);

COL1
----------
1
3
4


How can I get the values that are not in the table column?


Thanks in advance,
Jose Luis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 28 2012
Added on Oct 31 2012
3 comments
138 views