The SQUARE function returns the square of the specified number.
The specified number is multiplied by itself.
The example returns the squared value of 4.
SELECT SQUARE(4) AS '4 Squared'
| 4 Squared |
|---|
| 16 |
Syntax of the SQUARE function.
SQUARE(value)
value -- a number or column name.