database/ORACLE

[SQL]동명이인뽑아내기

공간사랑 2015. 10. 26. 21:58
반응형

동명이인뽑아내기

 

SELECT USER_NAME
FROM MEMBER
WHERE USER_NAME IN
(
 SELECT USER_NAME
 FROM MEMBER
 GROUP BY USER_NAME
 HAVING COUNT(USER_NAME) > 1
)

반응형