SQL Quiz 3
SQL Quiz 3
1. Print each employee grade at EMP table as in the example below.
1 | SELECT empno, ename, sal, CASE |
1 | SELECT empno, ename, sal, grade |
2.Print employee information which over average SAL at EMP table.
1 | SELECT empno, ename, job, sal |
3. Print employee information which over than average SAL in department at EMP table as in the example below.
1 | SELECT dname, empno, ename, job, sal |
4. Print the number of people by SAL rank for each employee at EMP table as in the example below. (Join SALGRADE table)
1 |
|
5. Print employee information which department name is ‘RESEARCH’ or department location is ‘NEW YORK’.
1 | ## 5. Print employee information which department name is 'RESEARCH' or department location is 'NEW YORK'. |