RAND()()
RAND() is a MySQL math function: random 0–1. ORDER BY RAND() LIMIT 1 picks a random row (slow on huge tables). Use it in SELECT, e.g. SELECT RAND(marks) FROM students;
These functions do not change stored marks unless you UPDATE. NULL in, NULL out for most of them.
ORDER BY RAND() LIMIT 1 is the interview random-row trick. On a large table it is expensive — say that.
In a viva, one numeric example beats listing twenty functions.
On the example next to this theory: RAND()(): create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Explain RAND with one number. random 0–1. ORDER BY RAND() LIMIT 1 picks a random row (slow on huge tables).