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);
New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources