SQL MAX Function
The MAX function returns the highest value in a column. NULL values are not included in the
calculation.
Syntax
SELECT MAX(column) FROM table
|
Example
SELECT MAX(Age) FROM Persons |
Result:
Note: The MIN and MAX functions can also be used on text columns, to
find the highest or lowest value in alphabetical order.
Use a web development platform that will help you save a lot of time and bring excitement to your daily development work.
It will also create professional best-practices around your code development and team collaboration.
Try Springloops now, the web development platform
|