Mathematical Functions

Mathematical functions are fairly standard across implementations. These are functions that allow you to manipulate numeric values in a database according to mathematical rules.

The most common functions include the following:

Absolute value(ABS)
Rounding(ROUND)
Square root(SQRT)
Sign values(SIGN)
Power(POWER)
Ceiling and floor values(CEIL, FLOOR)
Exponential values SIN, COS, TAN(EXP)

The general syntax of most mathematical functions is

FUNCTION(EXPRESSION)

Get Sams Teach Yourself SQL in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.