| Give me a hint about how to complete this task. | |
| Tell me about common errors when completing this task. | |
| Give me guidelines to help me complete the task. |
|
Sample data table:
|
DEPARTMENT_ID
|
JOB_ID
|
SUM(SALARY)
|
|---|---|---|
|
10
|
AD_ASST
|
4400
|
|
10
|
|
4400
|
|
20
|
MK_MAN
|
13000
|
|
20
|
MK_REP
|
6000
|
|
20
|
|
19000
|
|
30
|
PU_CLERK
|
13900
|
|
30
|
PU_MAN
|
11000
|
|
30
|
|
24900
|
|
|
|
48300
|
Table standards:
Sample syntax table:
SELECT column1, column2,...group_function(column) FROM table_name WHERE condition GROUP BY ROLLUP (grouping columns) HAVING condition ORDER BY column; |
Syntax table standards: