Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
select id, coords from orders join ( select coords from orders group by coords having count(0)>1 ) nonuniqcoords using(coords)
order by coords
select t1.* from table t1, table t2 where t1.id != t2.id AND t1.coords = t2.coords