MIN and MAX
MIN finds the smallest value. MAX finds the largest value.
Highest salary:
Lowest salary:
Both in one query:
Works with dates and text too!
Check your understanding
Find both the minimum and maximum salary.
Examples run on the employees sample database. Open any of them in the playground to experiment.