first()
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: first(): create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
MIN(marks) lowest score. Subquery to get those students.