Removing duplicates from a table
Let’s assume that you’ve got a table:
CREATE TABLE #t (
Id INT IDENTITY,
Name VARCHAR(50),
Number INT )… into which you’ve accidentally inserted some duplicate rows:
Let’s assume that you’ve got a table:
CREATE TABLE #t (
Id INT IDENTITY,
Name VARCHAR(50),
Number INT )… into which you’ve accidentally inserted some duplicate rows: