bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server SQUARE() Function

Example

SELECT SQUARE(64);

Definition and Usage

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

Syntax

SQUARE(
number
)

Parameter Values

ParameterDescription
numberRequired. A positive number to calculate the square of

Technical Details

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

Previous

SQL Server SQRT() Function

Next

SQL Server SUM() Function