I want to rewrite this query with not exists.
select field_1 from table_1
where fields_1 not in (select distinct field_1 from table_2)
Thanks
Printable View
I want to rewrite this query with not exists.
select field_1 from table_1
where fields_1 not in (select distinct field_1 from table_2)
Thanks
Try that:
select field_1 from table_1
where not exists (select distinct field_1 from table_2 where table_1.field_1 = table_1.field1)
Hope that helps,
clio_usa - OCP 8/8i/9i DBA
Visit our Web Site
I guess it's a typo
where table_1.field_1 = table_2.field1
:o
It's. Why they always give us so short lunch breaks ???
Thanks for the correction. I will double check the code, before posting it next time.
Hope that helps,
clio_usa - OCP 8/8i/9i DBA
Visit our Web Site