LAB4+5
LAB4+5
LAB4+5
T2
T3
select ename,JOB,HIREDATE FROM EMP WHERE HIREDATE BETWEEN ('02/20/1981') AND ('06/20/1981') ORDER BY HIREDATE
T4
select ename,SAL,COMM FROM EMP WHERE COMM IS NOT NULL ORDER BY SAL DESC , COMM DESC
T5
where comm<sal;
T6
T7
T8
SELECT ename,job , hiredate, hiredate+(6*30) as "NEW HIREDATE" FROM EMP ORDER BY HIREDATE DESC
T9
T10
T11
T12
T13
T14
SELECT ename,SAL , hiredate, hiredate+(6*30)+1 as "FIRST DATE AFTER 6 MONTHS" FROM EMP
T15
SELECT ename, round ((SYSDATE-hiredate)/ 30) MONTHS_WORKED FROM emp ORDER BY round ((SYSDATE-hiredate)/ 30)
T16
T17
SELECT INITCAP(ENAME) NAME ,LENGTH(ENAME) LEN FROM EMP WHERE INSTR(ENAME,'J')=1 OR INSTR(ENAME,'A')=1 OR INSTR(ENAME,'M')=1
T18
ENAME SAL
T19
ADAMS 1100
ALLEN 1600
BLAKE 2850
CLARK 2450
FORD 3000
JAMES 950
JONES 2975
KING 5000
MARTIN 1250
MILLER 1300
SCOTT 3000
SMITH 800
TURNER 1500
WARD 1250
14 rows returned in 0.00 seconds Download
ENAME SAL
WARD 1250
TURNER 1500
SMITH 800
SCOTT 3000
MILLER 1300
MARTIN 1250
KING 5000
JONES 2975
JAMES 950
FORD 3000
CLARK 2450
BLAKE 2850
ALLEN 1600
ADAMS 1100
14 rows returned in 0.02 seconds Download
T20