Fetch duplicate records from a table in sql.

Forums SQLFetch duplicate records from a table in sql.
Staff asked 12 months ago

Answers (1)

Add Answer
Staff answered 12 months 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