Quote:
Originally posted by Anchala
Please advise on finding duplicates rows based on 3 columns of a table. I am trying to avoid subqueries..
Example: payment table - policy,amount,coverage are the columns
duplicate row is when all policy, amount, coverage have same data repeated.
|
Maybe this query might work (but it depends on what you want to do with the result):
select policy, amount, coverage, count(*) from payment
group by policy, amount, coverage
having count(*) > 1