Program.../Oracle

Oracle 중복행 제거

Duritz 2009. 3. 13. 01:51

-- 중복행의 제거
select distinct job -- distinct 중복행을 제거하고 오름차순으로 정렬하여 보여준다.
from emp
where deptno=30;

select distinct deptno, job
from emp;

저작자표시 비영리 변경금지 (새창열림)