Professional Documents
Culture Documents
Maximum salary in
EMPLOYEES table
…
4-3 Copyright © 2009, Oracle. All rights reserved.
Types of Group Functions
• AVG
• COUNT
• MAX
Group
• MIN functions
• STDDEV
• SUM
• VARIANCE
You can use MIN and MAX for numeric, character, and date
data types.
1 SELECT AVG(commission_pct)
FROM employees;
EMPLOYEES
4400
9500
3500
Average
salary in the
6400 EMPLOYEES
table for each
10033 department
19333
10150
7000
All columns in the SELECT list that are not in group functions
must be in the GROUP BY clause.