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 self-service freelancing marketplace for people like you.

SQL SIN Function

SIN returns the sine in radians of the specified angle.

SIN, along with COS and TAN, is one of the primary trigonometric functions.

Example

#

This example returns the sine of the specified angles measured in radians.

SELECT SIN(PI()/2) AS '90 degrees',
       SIN(0) AS '0 degrees',
       SIN(-PI()/2) AS '-90 degrees'
Result:  1 record
90 degrees 0 degrees -90 degrees
1 0 -1

Note: PI is a function that returns the value of π (3.14).


Syntax

Syntax of the SIN function.

SIN(angle)

angle -- a number representing an angle in radians.


You may also like



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 self-service freelancing marketplace for people like you.

Guides


vsn 3.1