Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

sql
communitycreator

What is SIN() in SQL?

Harris Amjad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

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);

RELATED TAGS

sql
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring