Sams Teach Yourself SQL in 24 Hours

Sams Teach Yourself SQL in 24 Hours

By Ron Plew and Ryan Stephens

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

(EXP)

SIN, COS, TAN

 

The general syntax of most mathematical functions is

   syntax_icon.gif
FUNCTION(EXPRESSION)

Share ThisShare This

Informit Network