Professional Documents
Culture Documents
1
1
select * from EMP where Job = 'MANAGER' or Job = 'CLERK' and DEPTNO =
20 ;
'2'
'3'
Select ENAME from EMP where DEPTNO = 20 and Job != 'MANAGER' && Job
!= 'CLERK';
'4'
select ENAME from EMP where SAL between 1200 and 1400;
'5'
'6''1'
Select * from EMP where Job = 'MANAGER'or Job = 'CLERK' and DEPTNO =
20 ;
'2'
'3'
select ENAME from EMP where DEPTNO = 20 and Job!= 'MANAGER' &&
Job != 'CLERK';
'4'
select ENAME from EMP where SAL between 1200 and 1400;
'5'
'6'
select * from EMP where JOB != 'CLERK' and JOB != 'ANALYST' and JOB !=
'SALESMAN';
'7'
'8'
'9'
'10'
'11'
'12'
'13'
'14'
select ENAME, JOB, SAL from EMP where DEPTNO = 20 and SAL > 2000;
'15'
select * from EMP where DEPTNO = 30 and Job ='SALESMAN' and SAL >
1500;
'16'
'17'
select * from EMP where JOB != 'CLERK' and JOB != 'ANALYST' and JOB !=
'SALESMAN';