and : 좌우 조건식이 모두 참일 경우 참
or : 좌우 조건식이 모두 거짓일 경우 거짓
not : 조건식의 결과를 부정
between and : 범위조건
in : 항목 조건
hint and
hint between , and 둘다가능
직송상관 번호 = mgr
hint or
hint in 또는 or
A1) select empno, ename, deptno, job
from emp
where deptno=10 and job='manager';
A2) select
from
where hiredate **between** '1981/01/01' and hiredate <= '1981/12/31' and sal>=1500;
A3) select 사원번호, 이름, 부서번호, 급여
from 테이블
where sal >= 1500 and 부서=20
A4) select 사원번호, 이름 ,직속상관번호, 짐구
from 테이블
where mgr=7698 and job='clerk';
A5) select
from
where sal>2000 or sal <1000;
A6) where 부서번호 = 20 or 부서번호 = 30
A7) where job in ('clerk', 'salesman', 'analyst');
where job = 'clerk' or job ='salesman' or job ='analyst';
A8) hint not 이나 <> 이나 not in
where not(empno=7499 or empno=7566 or empno=7839);
where not (empno in 7499, 7566, 7839);
where empno<>7499 and empno<>7566 and empno<>7839;