Events
Sep 15, 6 AM - Sep 17, 3 PM
The best SQL community-led learning event. Sept 2025. Save €200 with code FABLEARN.
Get registeredThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL analytics endpoint in Microsoft Fabric
Warehouse in Microsoft Fabric
Returns the tangent of the input expression.
Transact-SQL syntax conventions
TAN ( float_expression )
float_expression
Is an expression of type float or of a type that can be implicitly converted to float, interpreted as number of radians.
float
The following example returns the tangent of PI()/2
.
SELECT TAN(PI()/2);
Here's the result set.
----------------------
1.6331778728383844E+16
The following example returns the tangent of .45.
SELECT TAN(.45);
Here's the result set.
--------
0.48
Events
Sep 15, 6 AM - Sep 17, 3 PM
The best SQL community-led learning event. Sept 2025. Save €200 with code FABLEARN.
Get registered