PI()()
PI() is a MySQL math function — PI() is 3.14159… no arguments. Use it in SELECT, e.g. SELECT PI() FROM students;
These functions do not change stored marks unless you UPDATE. NULL in, NULL out for most of them.
Trap — mixing PI with TRUNCATE TABLE (different word). Trap: maths on VARCHAR without CAST.
In a viva, one numeric example beats listing twenty functions.
On the example next to this theory: PI()(): create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
Explain PI with one number. PI() is 3.14159… no arguments.