I've got this query.
Which works fine but I I want to include negative amounts as being a duplicate too. So $100.00 and ($100.00) I want to consider a duplicate.
PHP:
SELECT ApTest.[GrossAmt], ApTest.[VenNum]
FROM ApTest
WHERE (((ApTest.[GrossAmt]) In (SELECT [GrossAmt] FROM [ApTest] As Tmp GROUP BY [GrossAmt] HAVING Count(*)>1 )))
ORDER BY ApTest.[GrossAmt];
Which works fine but I I want to include negative amounts as being a duplicate too. So $100.00 and ($100.00) I want to consider a duplicate.