Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

POWER

Example

Calculate and return the square of 4.

SELECT POWER(42);

Definition and Usage

The POWER() function computes a number raised to the power of another number and returns the result.

Syntax

POWER(ab)

Parameter Values

Parameter

Description

a

Required: A numeric value representing the base number.

b

Required: A numeric value representing the exponent.

Technical Details

Works in:

SQL Server (beginning from 2008), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse

More Examples

Example

Calculate and return the result of raising 8 to the power of 3.

SELECT POWER(83);