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
|
Tuesday, 2 July 2013
To find the duplicate rows in sql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment