I am running updates on my tblFasTrakTrans using multiple sets of criteria from tblMaster. I have several different sets of criteria that I can not update in a single pass. The result is I have some orphans in tblFasTrakTrans.
I want to focus on the remaining records in tblMaster that DO NOT have their PK in the respective FK field for tblFasTrakTrans
Is there a way I can employ an Inner Join query like this….
Code:
SELECT tblMaster.KeyPK, tblFasTrakTrans.IDPK, tblFasTrakTrans.KeyFK
FROM tblMaster INNER JOIN tblFasTrakTrans ON tblMaster.KeyPK = tblFasTrakTrans.KeyFK;
to then find records in tblMaster that do not have a foreign key in tblFasTrakTrans?
.
Thanks for any sugestions.