Let's say I have these two tables:
Table 1 Table 2
PName | FID PName | FID
---------------- ---------------
Dog | 1 Dog | 1
Dog | 2 Cat | 2
Cat | 2 Cat | 4
Cat | 3
What is the right query to select the two fields combinations of the first table that are not present in the second?
What I want to get is
Table 1
PName | FID
----------------
Dog | 2
Cat | 3
Would that be?
SELECT * FROM [Table 1] WHERE ([Table 1].[PName] NOT IN (SELECT [Table 2].[PName] FROM [Table 2]) AND ([Table 1].[FID] NOT IN (SELECT [Table 2].[FID] FROM [Table 2]))