SELECT MIN(column_name) FROM table_name WHERE condition;
SELECT MAX(column_name) FROM table_name WHERE condition;
MIN() function in SQL returns the smallest value from the selected column. MAX() function returns the largest value from the selected column.
0 Comments