Did you find this useful?
Socialize it today.


SQL MIN Function

Saturday, December 10, 2011

tags SQL

The SQL MIN function returns the smallest value of the selected column.

Employees Table

employeeIDemployeeNameage
1000John Smith40
1001Fred White27
1002Jane Scott53
1003Samuel Williams31


In this example, we want to find the minimum age in the employees table.


Syntax

SELECT MIN(column_name)
FROM Table


Example
SELECT MIN(age) as [Min Age]
FROM employees


Results

Min Age
27


The SQL MIN function is used to find the smallest value in a given column.

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

Head First SQL: Your Brain on SQL A Learners Guide SQL Cookbook