Search for duplicate products in a database

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
hi there
im testing my new site and found i entered a few duplicate products while browsing the website.
is there anything i can run via sql that would show me any more duplicates?
im running version 4.2
Thanks !
4 years ago
If product names are are exactly same then you can find using GROUP BY query.

Select count(Id), [Name] from Product group by [Name] order by count(Id) desc
4 years ago
SELECT username, email, COUNT(*)
FROM users
GROUP BY username, email
HAVING COUNT(*) > 1

Reference link for detail about this : https://stackoverflow.com/questions/2594829/finding-duplicate-values-in-a-sql-table
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.