select deptno,ename,sal from emp
where deptno = 10;
select ename, hiredate, deptno from emp
where empno = 7369;
select * from emp
where ename = 'ALLEN';
select * from emp
where job != 'MANAGER';
select * from emp
where hiredate > '81/04/02';
select ename, sal, deptno from emp
where sal >= 800;
select * from emp
where deptno >= 20;
select * from emp
where hiredate < '81/12/09';
select empno, ename from emp
where empno <= 7698;
select ename, sal, deptno from emp
where hiredate between '81/04/02' and '82/12/09';
select ename, job, sal from emp
where sal > 1600
and sal < 3000;
select * from emp
where empno between 7654 and 7782;
select * from emp
where hiredate not like ('81%');
select * from emp
where job in('MANAGER','SALESMAN');
select ename, empno, deptno from emp
where deptno not in(20,30);
select empno, ename, hiredate, deptno from emp
where ename like 'S%';
select * from emp
where hiredate like '81%';
select * from emp
where ename like '%S%';
select * from emp
where ename like ('_A%');
select * from emp
where comm is null ;
select * from emp
where comm is not null ;
select ename, deptno, sal from emp
where deptno = 30
and sal > 1500 ;
select empno, ename, deptno from emp
where ename like 'K%'
or deptno = 30;
select * from emp
where sal > 1500
and deptno = 30
and job = 'MANAGER';
select * from emp
where deptno = 30
order by empno;
select * from emp
order by sal desc;