Bank of America interview question

select only duplicated rows from specific table.

Interview Answer

Anonymous

5 Apr 2014

select * from table where id in (select duplicated_var from table group by duplicated_var having count(duplicated_var) > 1)

2