Home >> SQL >> Max in SQL

Max in SQL

The MAX returns the highest value of the selected column.

Syntax

SELECT MAX(columnname) FROM tablename WHERE condition; 

Example

SELECT MAX(price) AS highestprice FROM products;

Post Your Comment

Next Questions
Min
Avg
Count
Sum

Copyright ©2022 coderraj.com. All Rights Reserved.