I have 2 tables. Lets say TableA and TableB. They are joined by 2 fields, EffortID and SkuID, meaning TableA has an EffortID field that joins with TableB's EffortID and TableA has a field called SkuID and joins with TableB's SkuID. I want to form a query that will delete the records in TableB that are not in TableA.
Ex:
TableA
effortID = 300
SkuID = 200
effortID = 350
SkuID = 250
TableB
effortID = 300
SkuID = 200
effortID = 350
SkuID = 250
EffortID = 600
SkuID = 500
In this situation I would want to delete the record in TableB that has an effortID of 600 and a SkuID of 500
Thanks in advance
Ex:
TableA
effortID = 300
SkuID = 200
effortID = 350
SkuID = 250
TableB
effortID = 300
SkuID = 200
effortID = 350
SkuID = 250
EffortID = 600
SkuID = 500
In this situation I would want to delete the record in TableB that has an effortID of 600 and a SkuID of 500
Thanks in advance