Skip to content
Advertisement

Display all duplicated values and their IDs from a table (SQL)

I’m using SQL Sever. I have a table that looks like this:

Is there a way I can retrieve all the duplicated values only? Not just one of them, but all.

This is the desired output:

Advertisement

Answer

This works in SQL Server.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement