x

SQL – MAX()

Prev     Next

SQL MAX() function returns the maximum or biggest value of a column. The column should be numeric. Syntax for SQL MAX() function is given below.


SQL Syntax for MAX() function:

Syntax for MAX() function in SQL SELECT MAX(column_name) FROM table_name;

Please consider the following table with few records as given below.

Table name (for example): student
Column names in this table: Student_ID, Student_name, City and Marks
Available records: 4 rows