MAX() in MySQL — How It Works
What the MySQL MAX() function does, with an example.
Published October 21, 2026
MAX() returns the largest value in a column across matching rows.
Key points
- Part of standard SQL functions available in MySQL for working with query results
Example
SELECT MAX(price) FROM products;