POWER() Examples in SQL Server

In SQL Server, the T-SQL POWER() function is a mathematical function that returns the value of the specified expression to the specified power.

The function accepts two arguments; the first specifies the expression, the second specifies the power with which to raise that expression.

The return value is the same data type as the first argument.

Continue reading

EXP() Examples in SQL Server

In SQL Server, the T-SQL EXP() function is a mathematical function that returns the exponential value of the specified float expression.

You specify the float expression as an argument.

The exponent of a number is the constant e raised to the power of the number. The constant e (2.718281…), is the base of natural logarithms.

Continue reading