Hello Friends,
Recently I have got one task where one of my client asked me to find out duplicate records from on table with the combination.
So below is the query which I have wrote which will gives total no of count how many combination are same in the one table.
Please check this sql query which will save your lots of time.
SELECT YourColumn1,YourColumn2,YourColumn3, COUNT(*) TotalCount
FROM YourTable
GROUP BY YourColumn1,YourColumn2,YourColumn3
HAVING COUNT(*) > 1
ORDER BY COUNT(*) DESC
If you have any kind of question or suggestion please write on comment for this article.
Thanks for your support.
Read More...