sql - Looking list of duplicate for columns -
i have table data
name, id, alt, col 4, col 5, col6 etc..
i want list name, id, , alt duplicate other cols can different. dont want distinct want know dupes
i think want use group by
, having
clause, follows:
select name, id, alt, count(*) mytable group name, id, alt having count(*) > 1
Comments
Post a Comment