Do math sin
/* SELECT SIN(PI()/4) */ SELECT SIN(PI()/4); /* mysql> SELECT SIN(PI()/4); +------------------+ | SIN(PI()/4) | +------------------+ | 0.70710678118655 | +------------------+ 1 row in set (0.00 sec) */