You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MAX() and MIN() functions return the highest and lowest values in a column, respectively.
Example:
How many downloads does the most popular app have?
SELECT MAX(downloads)
FROM fake_apps;
The most popular app has 31,090 downloads!
MAX() takes the name of a column as an argument and returns the largest value in that column. Here, we returned the largest value in the downloads column.
MIN() works the same way but it does the exact opposite; it returns the smallest value.