Math
Math functions — ABS, ROUND, FLOOR, CEIL, MOD, POW. SELECT ROUND(AVG(marks), 1) FROM students;
Use DECIMAL for money, then ROUND for display. RAND() is random — not for cryptography.
Trap — TRUNCATE(x,d) vs TRUNCATE TABLE. Different commands.
On the example next to this theory: Math: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
ROUND / ABS / MOD with one numeric SELECT.