S
Smigidy
I'm trying to delete duplicate entries from two different tables, but if
there are two occurences on a table, both get deleted. How do I delete only
one corresponding record? For instance, I want to ignore(delete) receipt A
from table 1 and 2 since they match, but leave the second receipt since
there's no corresponding match.
Table 1 2
Receipt A A
Amount $1000.00 $1000.00
A
$1000.00
This is the code I have:
SELECT [1].[Receipt], [1].Amount
FROM [1] LEFT JOIN [2] ON ([1].[Receipt] = [2].Receipt) AND ([1].Amount =
[2].Amount)
WHERE ((([2].Amount) Is Null));
Thanks again,
Michael
there are two occurences on a table, both get deleted. How do I delete only
one corresponding record? For instance, I want to ignore(delete) receipt A
from table 1 and 2 since they match, but leave the second receipt since
there's no corresponding match.
Table 1 2
Receipt A A
Amount $1000.00 $1000.00
A
$1000.00
This is the code I have:
SELECT [1].[Receipt], [1].Amount
FROM [1] LEFT JOIN [2] ON ([1].[Receipt] = [2].Receipt) AND ([1].Amount =
[2].Amount)
WHERE ((([2].Amount) Is Null));
Thanks again,
Michael