1. What is the difference between 'exist' and 'in' statements?
2. Why don't I get the same results for those querries:
Query1:
select a1.c1 from a a1
where exists
(
select b1.c1 from b b1 where ( a1.c1 = b1.c1 )
)
Query2:
select a1.c1 from a a1
where not exists
(
select b1.c1 from b b1 where ( a1.c1 != b1.c1 )
)
Thanks.
2. Why don't I get the same results for those querries:
Query1:
select a1.c1 from a a1
where exists
(
select b1.c1 from b b1 where ( a1.c1 = b1.c1 )
)
Query2:
select a1.c1 from a a1
where not exists
(
select b1.c1 from b b1 where ( a1.c1 != b1.c1 )
)
Thanks.