Does anyone have any ideas for writing a query that excludes the records in table to the left that match the table to the right? Thanks in advance!
Notice that two records "236 500 236 500" are missing from the results off this query I tried:
SELECT tmpBankDebits.Store, tmpBankDebits.Amount
FROM tmpBankDebits LEFT JOIN tmpChangeOrdersWithManual ON
tmpBankDebits.[ConcatenateBankDebits] = tmpChangeOrdersWithManual.[ConcatenateBank]
WHERE (((tmpChangeOrdersWithManual.ConcatenateBank) Is Null));
Results:
Store Amount
89 500
95 500
126 500
1626 500
712 500
Store Amount ConcatenateBankDebits Store Amount ConcatenateBank
64 500 64 500 64 500 64 500
89 500 89 500 98 500 98 500
95 500 95 500 108 500 108 500
98 500 98 500 160 500 160 500
108 500 108 500 189 500 189 500
126 500 126 500 202 500 202 500
160 500 160 500 209 500 209 500
189 500 189 500 222 500 222 500
202 500 202 500 222 500 222 500
209 500 209 500 236 500 236 500
222 500 222 500 236 500 236 500
222 500 222 500 236 500 236 500
236 500 236 500 236 500 236 500
236 500 236 500 236 500 236 500
236 500 236 500 236 500 236 500
236 500 236 500 236 500 236 500
236 500 236 500 236 500 236 500
236 500 236 500 240 500 240 500
236 500 236 500 252 500 252 500
236 500 236 500 262 500 262 500
236 500 236 500 265 500 265 500
236 500 236 500 265 500 265 500
240 500 240 500 703 500 703 500
252 500 252 500 710 500 710 500
262 500 262 500 721 500 721 500
265 500 265 500 723 500 723 500
265 500 265 500 1330 500 1330 500
265 500 265 500 1602 500 1602 500
703 500 703 500 1613 500 1613 500
710 500 710 500 1645 500 1645 500
712 500 712 500 1645 500 1645 500
721 500 721 500
723 500 723 500
1330 500 1330 500
1330 500 1330 500
1602 500 1602 500
1602 500 1602 500
1613 500 1613 500
1613 500 1613 500
1626 500 1626 500
1645 500 1645 500
1645 500 1645 500
I tried this and got the same results:
SELECT tmpBankDebits.Store, tmpBankDebits.Amount,
tmpBankDebits.ConcatenateBankDebits
FROM tmpBankDebits WHERE ConcatenateBankDebits NOT IN
(SELECT tmpChangeOrdersWithManual.ConcatenateBank
FROM tmpChangeOrdersWithManual);