select TB.* from [table], (select a,b from [table] group by a,b having count(a+b) >1 ) TB_Tmp where [table].a=TB_Tmp.a and [table].b=TB_Tmp.b