hi ,
I have a simple SQL problem, which I don't seem to get my head around.
I have 2 Tables(Tab1 and Tab2) looking as follows:
Tab1
----
A B C D
------------------
1 1 10 SQ
1 2 20 TR
1 3 30 EE
2 1 40 FR
Tab2
----
A B
-------
1 2
1 3
I want from table 1 the rows which are not contained in tab2, hence the first and last row. How do I do this??
The problem is that there are 2 fields as identifier. Otherwise I would obviously just write:
select * from tab1 where a not in (select a from tab2)
I hope my question is clear.
Thanks in advance,
Kingsley