• To list just the dups:

    SELECT names /*, COUNT(*) AS dup_count*/

    FROM employee

    GROUP BY names

    HAVING COUNT(*) > 1

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.