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

TAN

Example

Calculate and return the tangent of a specified number.

SELECT TAN(1.75);

Definition and Usage

The TAN() function calculates and returns the tangent of a given number.

Syntax

TAN(number)

Parameter Values

Parameter

Description

number

Required: A numeric value is needed.

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 provide the tangent of a given number.

SELECT TAN(-3);