SQL Max()

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;

 

Leave a Reply