Course Content
Introduction to SQL
Introduction to SQL
The MAX() Function
MAX()
- This function returns the highest value in a particular column. Let's take a look at the following example:
SELECT MAX(population) FROM country;
Here MAX()
returns the largest population value in the country
table.
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query to get the largest value from the surfacearea
column in the country
table.
Thanks for your feedback!
The MAX() Function
MAX()
- This function returns the highest value in a particular column. Let's take a look at the following example:
SELECT MAX(population) FROM country;
Here MAX()
returns the largest population value in the country
table.
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query to get the largest value from the surfacearea
column in the country
table.
Thanks for your feedback!