This document contains SQL queries on an emp database table:
1) It selects the ename and hiredate columns and renames them NAME and DOJ.
2) It selects the sal and sal/30 columns.
3) It selects all columns where job is CLERK.
This document contains SQL queries on an emp database table:
1) It selects the ename and hiredate columns and renames them NAME and DOJ.
2) It selects the sal and sal/30 columns.
3) It selects all columns where job is CLERK.
This document contains SQL queries on an emp database table:
1) It selects the ename and hiredate columns and renames them NAME and DOJ.
2) It selects the sal and sal/30 columns.
3) It selects all columns where job is CLERK.
from emp; 8. select sal ,sal/30 from emp; 9.select * from emp where job='CLERK'; 10. select ename,sal from emp where job='SALESMAN'; 11. select * from emp where sal>=2500 12.select * from emp where hiredate>'03-JAN-1985'; 13.select * from emp where (sal*12)>10000; 14.select ename||' EARNS THE SALARY '||sal||' '||'EVERY MONTH' from emp; 15. select * from emp where deptno =20; 16.select * from emp where job='CLERK' and deptno=20; 17. select * from emp where deptno=10 and sal>1000; 18.select * from emp where job='MANAGER' and deptno=30 and hiredate<'22-MAY1986'; 19.select * from emp where deptno in(10,30) and sal>1200; 20. 21. select* from emp where job!='MANAGER'; 22. select * from emp where job='SALESMAN' or job='CLERK' 23. where job='CLERKS' and job='MANAGER' and deptno<>20; 24. 25. 26 . select ename from emp where job='CLERK' and deptno in(10,20,30,40);