SQL Server SQUARE() Function

Return the square of a number

Definition and Usage

The SQUARE() function returns the square of a number.

Syntax

SQUARE(number)

Parameter Values

Parameter Description
number Required. A positive number to calculate the square of

Technical Details

Works in: SQL Server (starting with 2008), Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Return the square of a number:

SELECT SQUARE(13);