SQL-Quiz-9
SQL Quiz 9
1. In the employee table, the salary subtotal and sum by department number (DEPTNO) and job (JOB) Print it out like the example below.
1 | SELECT deptno, |
2. In the employee table, the salary subtotal and sum by department number (DEPTNO) and job (JOB) Print it out like the example below.
1 | SELECT deptno, job, SUM(sal) sum_sal |
3. Specify the salary subtotal and total by department name (DNAME) and job (JOB).Print it like an example.
1 | SELECT CASE |
4. Specify the salary subtotal and total by department name (DNAME) and job (JOB).Only the top one is shown and salary is in amount (thousands,) as in the example below Do you print.
1 | SELECT CASE GROUPING(dname) |
5. Specify the salary subtotal and total by department name (DNAME) and job (JOB).Only the top one is shown and salary is in amount (thousands,) as in the example below Print only the data of salary more than 1000 by department name and occupation?.
1 | SELECT CASE GROUPING(dname) |