Skip
Arish's avatar

79. MIN Function


MIN Function

MIN returns the lowest value.

Syntax

sql
1SELECT MIN(column) FROM table;

Example: Lowest Marks

sql
1SELECT MIN(marks) AS lowest FROM students;

With WHERE

sql
1SELECT MIN(age) FROM students
2WHERE grade = 'A';