SQL Server Aggregate Functions: MIN
Quick Answer
The MIN function in SQL Server returns the smallest value from a specified column or expression in a dataset. It is commonly used in aggregate queries to find minimum values across rows, such as the earliest date or lowest price.
Learning Objectives
- Understand the purpose and use cases of the MIN aggregate function in SQL Server.
- Learn the syntax and how to write queries using MIN.
- Apply MIN to real-world examples such as finding the earliest date or lowest value.
Introduction
Aggregate functions in SQL Server help summarize data by performing calculations on multiple rows.
The MIN function is one of the fundamental aggregate functions used to find the smallest value in a column.
Understanding how to use MIN effectively is essential for data analysis and reporting.





