Home » SQLite MIN Function

SQLite MIN Function

by Online Tutorials Library

SQLite MIN Function

SQLite MIN function is used to fetch the minimum value of an expression.

Syntax:

Syntax when you use Min function with GROUP BY clause:

Example1:

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

Sqlite Min function 1

Retrieve the lowest fees of the student from the “STUDENT” table:

Output:

Sqlite Min function 2

Example2:

Using GROUP BY clause with MIN function:

Retrieve NAME and MIN FEES from the table “STUDENT” and ORDER BY the data by NAME:

Output:

Sqlite Min function 3


Next TopicSQLite Max

You may also like