SELECT ENAME
FROM EMP
WHERE COMM IS NULL;
FROM EMP
WHERE COMM IS NULL;
SELECT ENAME
FROM EMP
WHERE MGR IS NULL;
FROM EMP
WHERE MGR IS NULL;
SELECT ENAME
FROM EMP
WHERE JOB='SALESMAN' AND DEPTNO=30;
FROM EMP
WHERE JOB='SALESMAN' AND DEPTNO=30;
SELECT ENAME
FROM EMP
WHERE JOB='SALESMAN' AND DEPTNO=30 AND SAL>1500;
FROM EMP
WHERE JOB='SALESMAN' AND DEPTNO=30 AND SAL>1500;
SELECT ENAME
FROM EMP
WHERE ENAME LIKE 'S%' OR ENAME LIKE 'A%';
FROM EMP
WHERE ENAME LIKE 'S%' OR ENAME LIKE 'A%';
SELECT ENAME
FROM EMP
WHERE DEPTNO NOT IN(10,20);
FROM EMP
WHERE DEPTNO NOT IN(10,20);
SELECT ENAME
FROM EMP
WHERE ENAME NOT LIKE 'S%';
FROM EMP
WHERE ENAME NOT LIKE 'S%';
SELECT ENAME
FROM EMP
WHERE MGR IS NOT NULL AND DEPTNO=10;
FROM EMP
WHERE MGR IS NOT NULL AND DEPTNO=10;
SELECT ENAME
FROM EMP
WHERE COMM IS NULL AND JOB='CLERK';
FROM EMP
WHERE COMM IS NULL AND JOB='CLERK';
SELECT ENAME
FROM EMP
WHERE MGR IS NULL AND DEPTNO IN(10,30);
FROM EMP
WHERE MGR IS NULL AND DEPTNO IN(10,30);
SELECT ENAME
FROM EMP
WHERE JOB='SALESMAN' AND DEPTNO=30 AND SAL>2450;
FROM EMP
WHERE JOB='SALESMAN' AND DEPTNO=30 AND SAL>2450;
SELECT ENAME
FROM EMP
WHERE JOB='ANALYST' AND DEPTNO=30 AND SAL>2500;
FROM EMP
WHERE JOB='ANALYST' AND DEPTNO=30 AND SAL>2500;
SELECT ENAME
FROM EMP
WHERE ENAME LIKE 'M%' OR ENAME LIKE 'J%';
FROM EMP
WHERE ENAME LIKE 'M%' OR ENAME LIKE 'J%';
SELECT ENAME,SAL*12 ANNUAL_SAL
FROM EMP
WHERE DEPTNO NOT IN 30;
FROM EMP
WHERE DEPTNO NOT IN 30;
SELECT ENAME
FROM EMP
WHERE ENAME NOT LIKE '%ES' OR ENAME NOT LIKE '%R';
FROM EMP
WHERE ENAME NOT LIKE '%ES' OR ENAME NOT LIKE '%R';
SELECT ENAME, SAL+SAL*10/100
FROM EMP
WHERE MGR IS NOT NULL AND DEPTNO=10;
FROM EMP
WHERE MGR IS NOT NULL AND DEPTNO=10;
SELECT ENAME
FROM EMP
WHERE JOB='SALESMAN' AND ENAME LIKE '%E_' AND SAL LIKE '_';
FROM EMP
WHERE JOB='SALESMAN' AND ENAME LIKE '%E_' AND SAL LIKE '_';
SELECT ENAME
FROM EMP
WHERE HIREDATE > '31-DEC-81';
FROM EMP
WHERE HIREDATE > '31-DEC-81';
SELECT ENAME
FROM EMP
WHERE HIREDATE LIKE '%FEB%';
FROM EMP
WHERE HIREDATE LIKE '%FEB%';
SELECT ENAME
FROM EMP
WHERE JOB NOT IN('MANAGER','CLERK') AND DEPTNO IN(20,10) AND SAL BETWEEN 1000 AND 3000;
FROM EMP
WHERE JOB NOT IN('MANAGER','CLERK') AND DEPTNO IN(20,10) AND SAL BETWEEN 1000 AND 3000;
SELECT ENAME
FROM EMP
WHERE SAL NOT BETWEEN 1000 AND 2000 AND DEPTNO IN(10,20) OR DEPTNO=30 AND JOB !='SALESMAN';
FROM EMP
WHERE SAL NOT BETWEEN 1000 AND 2000 AND DEPTNO IN(10,20) OR DEPTNO=30 AND JOB !='SALESMAN';
SELECT DNAME
FROM DEPT
WHERE LOC LIKE'%O%' AND DNAME LIKE'%O%';
FROM DEPT
WHERE LOC LIKE'%O%' AND DNAME LIKE'%O%';
SELECT ENAME
FROM EMP
WHERE JOB LIKE '%MAN%';
FROM EMP
WHERE JOB LIKE '%MAN%';
SELECT ENAME
FROM EMP
WHERE HIREDATE BETWEEN '01-JAN-83' AND '31-DEC-86';
FROM EMP
WHERE HIREDATE BETWEEN '01-JAN-83' AND '31-DEC-86';
SELECT *
FROM EMP
WHERE HIREDATE LIKE '%NOV%' OR HIREDATE LIKE '%DEC%';
FROM EMP
WHERE HIREDATE LIKE '%NOV%' OR HIREDATE LIKE '%DEC%';
SELECT ENAME,COMM
FROM EMP
WHERE COMM > SAL;
FROM EMP
WHERE COMM > SAL;
SELECT ENAME,JOB
FROM EMP
WHERE MGR IS NOT NULL AND ENAME LIKE 'S%';
FROM EMP
WHERE MGR IS NOT NULL AND ENAME LIKE 'S%';
SELECT ENAME,SAL
FROM EMP
WHERE SAL*12 LIKE '%0';
FROM EMP
WHERE SAL*12 LIKE '%0';
SELECT ENAME
FROM EMP
WHERE ENAME LIKE '%L%L%';
FROM EMP
WHERE ENAME LIKE '%L%L%';
SELECT ENAME
FROM EMP
WHERE ENAME LIKE 'A%' OR ENAME LIKE 'E%' OR ENAME LIKE 'I%' OR ENAME LIKE 'O%' OR ENAME LIKE 'U%';
FROM EMP
WHERE ENAME LIKE 'A%' OR ENAME LIKE 'E%' OR ENAME LIKE 'I%' OR ENAME LIKE 'O%' OR ENAME LIKE 'U%';
SELECT ENAME
FROM EMP
WHERE ENAME LIKE 'A%' OR ENAME LIKE 'E%' OR ENAME LIKE 'I%' OR ENAME LIKE 'O%' OR ENAME LIKE 'U%';
FROM EMP
WHERE ENAME LIKE 'A%' OR ENAME LIKE 'E%' OR ENAME LIKE 'I%' OR ENAME LIKE 'O%' OR ENAME LIKE 'U%';
0 Comments