1๊ฐ์ ์ปฌ๋ผ์ ๋ํ ์ค๋ณต ๊ฐ ํ์ธ
select u.name, count(u.name)
from users u
group by u.name
having count(u.name) > 1;
2๊ฐ ์ด์ ์ปฌ๋ผ์ ๋ํ ์ค๋ณต ๊ฐ ํ์ธ
select u.cell_phone,
u.name,
count(*)
from users u
group by u.cell_phone, u.name
having count(*) > 1;