Hi there,
I have the following scenario.
Table_A (col1, col2, col3, id)
Table_B (col1, col2, col3, col4)
Table_A has the following records:
v11, v12, v13, 1
v21, v22, v23, 2
...
v71, v72, NULL, 7...
v91, NULL, NULL, 9
vx1, vx2, NULL, xx
Table_B has the following:
v11, v12, v13, v14
v21, v22, v23, v24
...
v71, v72, NULL, v74...
v91, NULL, NULL, NULL
The requirement is to compare first three columns (col1, col2, col3) on
those two tables and return records that have no matching from Table_A.
For example, this record (vx1, vx2, NULL, xx) from Table_A has no matching
from Table_B, it should return its ID.
I tried CASE..., JOIN...but can't seem to be able to filter out the ones I
want and ended up returning the ones that find matches as well.
Suggestions?
Thanks....a |