SQL Server SQUARE() Function

Example

Return the square of a number:

SELECT SQUARE(64);
Try it Yourself »

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);
Try it Yourself »

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.