I have two tables each has Project# and Sample Number
Need to find which samples are not in first table.
here is my botched SQL
DougP
< I love mine
Need to find which samples are not in first table.
here is my botched SQL
Code:
SELECT [ChainOfCustody Details].[Project Number], [ChainOfCustody Details].SampleNum, SamplesChecked.Sample
FROM SamplesChecked INNER JOIN [ChainOfCustody Details] ON (SamplesChecked.[Project Number] = [ChainOfCustody Details].[Project Number]) AND (SamplesChecked.Sample = RIGHT( [ChainOfCustody Details].SampleNum,4)) AND SamplesChecked.Sample NOT IN (Select RIGHT([ChainOfCustody Details].SampleNum,4) From [ChainOfCustody Details])
DougP
![[r2d2] [r2d2] [r2d2]](/data/assets/smilies/r2d2.gif)