Javatpoint Logo
Javatpoint Logo

SQLite MAX Function

SQLite MAX function is used to fetch the maximum value of an expression.

Syntax:

Syntax when you use MAX function with GROUP BY clause:

Example1:

We have a table named "STUDENT", having the following data:

Sqlite Max function 1

Retrieve the highest fees of the student from the "STUDENT" table.

Output:

Sqlite Max function 2

Example2:

Using GROUP BY clause with MAX function:

Retrieve NAME, CITY and MAX FEES from the table "STUDENT" and ORDER BY the data by CITY:

Output:

Sqlite Max function 3
Next TopicSQLite Avg




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA