I have the following two tables:
Table A
ID Code1 Code2
--------------
1 2000 1
2 3000 2
3 1000 3
4 2100 1
5 3500 5
Table B
Code1 Code2
-----------
2100 7
2100 1
3000 2
1000 4
I need to get the IDs from Table A that have values of Code1, Code2 equal to values of Code1,Code2 from table B?
I need to get the following result.
ID
--
2
4