I have a SQL Server database of organizations, and there are
many duplicate rows. I want to run a select statement to grab all of
these and the amount of dupes, but also return the ids that are
associated with each organization.
A statement like:
Will return something like
But I'd also like to grab the IDs of them.
SELECT YourColumn, COUNT(*) TotalCount
|
Selasa, 2 Julai 2013
To find the duplicate rows in sql
Langgan:
Catat Ulasan (Atom)
Tiada ulasan:
Catat Ulasan