Home Forums SQL Server 2005 Development Delete Duplicates from table with no identity column RE: Delete Duplicates from table with no identity column

  • How about:

    SELECT dupeColumn,

    COUNT(dupeColumn) AS NumOccurrences

    FROM users

    GROUP BY dupeColumn

    HAVING ( COUNT(dupeColumn) > 1 )

    --
    :hehe: