max()
MAX(marks) highest value. Topper query: ORDER BY marks DESC LIMIT 1 or WHERE marks = (SELECT MAX(marks) FROM students). The subquery form keeps ties.
LIMIT 1 hides ties. Say that in the interview.
Trap — MAX without mentioning ties.
On the example next to this theory — max() — aggregate functions collapse many rows into one summary row.
Exam tip
MAX(marks). Ties: WHERE marks = (SELECT MAX(marks) FROM students).