Dofactory.com
Dofactory.com
Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

SQL SQUARE Function

The SQUARE function returns the square of the specified number.

The specified number is multiplied by itself.

Example

#

The example returns the squared value of 4.

SELECT SQUARE(4) AS '4 Squared'
Result:  1 record
4 Squared
16

Syntax

Syntax of the SQUARE function.

SQUARE(value)

value -- a number or column name.


You may also like



Last updated on Dec 21, 2023

Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.