Fetch duplicate records from a table in sql.

Forums SQLFetch duplicate records from a table in sql.
Staff asked 2 years ago

Answers (1)

Add Answer
Staff answered 2 years ago

Refere the following query to get the duplicate record, you can specify your table-related fields and get the result for the duplicate value.

SELECT Id, Name, COUNT(*)
FROM WalmartProducts
GROUP BY Id, Name
HAVING COUNT(*) > 1

Subscribe

Select Categories