SQL Server MIN() Function

Find the price of the cheapest product in the "Products" table

Definition and Usage

The MIN() function returns the minimum value in a set of values.

Note: Also look at the MAX() function.

Syntax

MIN(expression)

Parameter Values

Parameter Description
expression Required. A numeric value (can be a field or a formula)

Technical Details

Works in: SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse