Home >> SQL >> Min in SQL

Min in SQL

The MIN returns the lowest value of the selected column.

Syntax

SELECT MIN(columnname) FROM tablename WHERE condition; 

Example

SELECT MIN(price) AS lowestprice FROM products;

Post Your Comment

Next Questions
Avg
Count
Sum

Copyright ©2022 coderraj.com. All Rights Reserved.