MIN() Function


 

SQLite: MIN Function

This SQLite tutorial explains how to use the SQLite MIN function with syntax and examples.

 

Description:
The SQLite MIN function returns the minimum value of an expression.

 
Syntax:

OR Grouping the results by one or more columns is:

 

Parameters or Arguments:

expression1, expression2, … expression_n

The expressions that are not encapsulated within the MIN function and must be included in the GROUP BY clause at the end of the SQLite statement.

aggregate_expression

This is the column or expression from which the minimum value will be returned.

tables

The tables that you wish to retrieve records from. There must be at least one table listed in the FROM clause.

conditions

These are conditions that must be met for the records to be selected.

 

Examples:
The following SQLite statement returns the smallest value of the “salary” columns from the “Account” table:

MIN(salary)
5000