last()
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: last(): create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
MAX(marks). Ties: WHERE marks = (SELECT MAX(marks) FROM students).