Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

SIN

Example

Calculate and return the sine of a given number.

SELECT SIN(2);

Definition and Usage

The SIN() function computes the sine of a given number.

Syntax

SIN(number)

Parameter Values

Parameter

Description

number

Required: A numerical value.

Technical Details

Works in:

SQL Server (beginning from 2008), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse

More Examples

Example

Calculate and return the sine value of a given number.

SELECT SIN(-1);