I have 2 tables like this:
Table1 | Table2
|
A1 | B1
A2 | B2
A3 | B3
A4 | B4
I need to know waht rows are in Table 1 that there are't in Table 2
I tried this:
select * from Table1, Table2 where
a1 not in (select b1 from table2)
and a2 not in (select b2 from table2)
and a3 not in (select b3 from table2)
and a4 not in (select b4 from table2)
but this didn't work...
Someone can help me ??
Thanks !!
Table1 | Table2
|
A1 | B1
A2 | B2
A3 | B3
A4 | B4
I need to know waht rows are in Table 1 that there are't in Table 2
I tried this:
select * from Table1, Table2 where
a1 not in (select b1 from table2)
and a2 not in (select b2 from table2)
and a3 not in (select b3 from table2)
and a4 not in (select b4 from table2)
but this didn't work...
Someone can help me ??
Thanks !!