select t1.* from tabla t1 join prueba t2 on t1.col1 = t2.col1 AND t1.col2 = t2.col2 AND t1.id != t2.id