Another way to do this is via an OUTER JOIN:
Code:
SELECT TableA.*
FROM TableA LEFT JOIN TableB ON TableA.CheckNumber=TableB.CheckNumber
WHERE TableB.CheckNumber IS NULL;
This works because the OUTER JOIN preserves all the rows of TableA, and sets the corresponding values of TableB to NULL if there is no match based on the CheckNumber. The WHERE clause then selects only those (missing from TableB) rows.
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com