0
1.4kviews
Explain following term: Group by clause
1 Answer
0
3views

•Aggregate functions can be used for some group by clause in this case it will give summary information for that specific group.

Example: Display the maximum salary of all departments in company

SELECT department_id as Dept,

AVG(salary)as Avg

FROM employees

GROUP BY department_id

Dept Avg
10 34000
20 30000
30 …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.