SQL Quiz 4
SQL Quiz 4
1. Print number of 5 employee in high order of SAL at EMP table in the example below.
1 | SELECT * |
2. When each employee ranks in the SAL order in the EMP table, print the ranks 6th to 10th as in the example below.
1 | SELECT * |
3. Explain why the result which in the example below is 0 matches.
1 | SELECT ROWNUM, A.* |
Rownum keyword execute after ‘where’ execute finished.
4. Print example which in the vertical example to horizontal example below.
1 | SELECT MAX(CASE grade |
5. First, make SALGRADE_TEMP table as example below, Print example which in the horizontal example to vertical example below.
1 | CREATE TABLE HORIZONAL_SALGRADE( |
1 |