메뉴 건너뛰기

tnt_db

Oracle 중복 data를 찾아 모두 display 하는 방법

운영자 2002.11.23 10:38 조회 수 : 2969 추천:37

    DEPTNO DNAME          LOC
---------- -------------- -------------
         0 ss             tt
         1 tt             ii
         2 yy             gg
         1 tt             uu
         0 smlee          insert




SQL>  select * from  dept a
   where 1 < (select count(deptno) from dept b  where a.deptno =b.deptno);  

    DEPTNO DNAME          LOC
---------- -------------- -------------
         0 ss             tt
         1 tt             ii
         1 tt             uu
         0 smlee          insert            
위로