What is SIN() in SQL?

The SIN() function returns the sine of a number. To be more specific, it returns the sine of a number in the radians float value. The illustration below shows the mathematical representation of the SIN() function.

Mathematical representation of the sine function

Syntax

SIN(number)

Parameter

This function requires number as a parameter.

Return Value

SIN() returns the sine of a number (radians float value) that is sent as a parameter.

Example

/*example showing how to use SIN(X)*/
-- positive number
select SIN(10);
-- negative number
select SIN(-6);
-- fractional number
select SIN(4.6);

Free Resources