Using this query:
I can successfully find all the positive GrossAmt duplicate records. However in this case, I want to consider a negative amout as a duplicate as well. I know there are some in my table. How can I go about correcting the query to pull the negative amounts too? Thanks
Code:
SELECT ApTest.GrossAmt, ApTest.PaidAmt, ApTest.DistAcct, Abs([GrossAmt]) AS Expr1
FROM ApTest
WHERE (((ApTest.GrossAmt) In (SELECT [GrossAmt] FROM [ApTest] As Tmp GROUP BY [GrossAmt] HAVING Count(*)>1 )))
ORDER BY ApTest.GrossAmt;
I can successfully find all the positive GrossAmt duplicate records. However in this case, I want to consider a negative amout as a duplicate as well. I know there are some in my table. How can I go about correcting the query to pull the negative amounts too? Thanks