Numbers: ROUND, ABS, modulo
ROUND rounds, ABS removes the sign and % gives a remainder.
Example
SELECT ROUND(3.14159, 2) AS r, ABS(-7) AS a, 17 % 5 AS m;Result
r | a | m 3.14 | 7 | 2
Exercise
Absolute value.
(-7)Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.