The MIN() function returns the smallest value of the selected column.
The MAX() function returns the largest value of the selected column.
SELECT MIN(column_name) FROM table_name WHERE condition;SELECT MAX(column_name) FROM table_name WHERE condition; Edit the code below and click Run to see the result live.