SELECT SAL * 12
FROM EMP
WHERE SAL * 12 = 36000;
SELECT SAL * 12
FROM EMP
WHERE SAL = 36000/12;
SELECT JOB
FROM EMP
WHERE SUBSTR(JOB, 1, 3) = 'MAN';
SELECT JOB
FROM EMP
WHERE JOB LIKE 'MAN%';
SELECT HIREDATE
FROM EMP
WHERE TO_CHAR(HIREDATE, 'RRRR') = '1982';
SELECT /*+ GATHER_PLAN_STATISTICS */HIREDATE
FROM EMP
WHERE HIREDATE
BETWEEN TO_DATE('1982/01/01', 'RRRR/MM/DD')
AND TO_DATE('1982/12/12', 'RRRR/MM/DD') + 1;
[이지업클래스] 실무에서 바로 쓰는 SQL 튜닝법 수강 후 정리한 내용입니다.