Skip to main content
SQL โ€ข LESSON 66

MAX

How can we find the highest employee salary?

Intermediateโฑ 3 Minutesโญ 790 XP
๐Ÿค” THE QUESTION

How can we find the highest employee salary?

๐Ÿ’ก WHAT IS IT?

MAX() identifies the largest numerical, alphabetical, or chronological value in a column.

๐ŸŽฏ WHAT IS IT USED FOR?

Peak compensation, latest transaction timestamps, maximum server response times.

๐Ÿ’ป EXAMPLE
SELECT MAX(salary) AS maximum_salary
FROM employees;

๐ŸŽฏ Mission Objectives

Practice typing production-grade SQL code for MAX.

  • โœ“ MAX() function
  • โœ“ Peak value
  • โœ“ High-watermark metrics
  • โœ“ Statistical extremes