bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server COT() Function

Concept visual

SQL Server COT() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the cotangent of a number:

SELECT COT(6);

Definition and Usage

The COT() function returns the cotangent of a number.

Syntax

Cot(

number )

Parameter Values

Parameter

Description number

Required. A numeric value

Technical Details

Works in:

SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Return the cotangent of a number:

SELECT COT(-2);

Previous

❮ SQL Server Functions

Next

Previous

SQL Server COS() Function

Next

SQL Server DEGREES() Function