The MAX() function returns the largest value of the selected column.
Syntax:-
SELECT MAX(column_name) FROM table_name;
Example:-
The subsequent SQL gets the largest value of the “Price” column from the “Hosting” table:-
SELECT MAX(Price) AS HighestPrice FROM Hosting;

 

Categories: SQL Function

0 thoughts on “SQL Max()”

Leave a Reply