Math functions
Math functions are pre-defined mathematical operations used within SQL queries to perform calculations on numerical data. They provide ways to manipulate and transform data without needing to extract it from the database and process it separately.
Function |
Signature |
Description |
---|---|---|
|
POWER (int|double, int|double) |
Returns the value of first argument raised to the power of the second argument. |
|
|
Rounds to the nearest integer. |
|
FLOOR (int|double) |
Returns the largest integer not greater than the value given. |
Examples of all functions:
Function |
Example |
---|---|
POWER |
|
ROUND |
|
FLOOR |
|