bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server MIN() Function

Example

SELECT MIN(Price) AS
  SmallestPrice FROM Products;

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

ParameterDescription
expressionRequired. 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

Previous

SQL Server MAX() Function

Next

SQL Server PI() Function