min()
MIN(marks) lowest value, skips NULL. SELECT name, marks FROM students WHERE marks = (SELECT MIN(marks) FROM students); can return several students who tied.
MIN on strings is alphabetical (collation). MIN on dates is earliest.
Trap — MIN as ‘first inserted row’ — it is not, unless you MIN(id).
On the example next to this theory — min() — aggregate functions collapse many rows into one summary row.
Exam tip
MIN(marks) lowest score. Subquery to get those students.