• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / Oracle / function / TAN Function in Oracle SQL – PLSQL

TAN Function in Oracle SQL – PLSQL

October 29, 2012 by techhoneyadmin

The TAN function in Oracle SQL / PLSQL is used to calculate tangent of numeric value where numeric value is provided in radian format.

It’s mathematically equal to TAN(N).

Syntax for the TAN function in Oracle SQL / PLSQL is:

SELECT TAN(radian)
FROM table_name;

Let’s take an example for understanding:

Suppose we want to get the tangent of 30 degree.

SELECT TAN(30*22/(7*180))
FROM dual;

The output of the above statement will be:

TAN(30*22/(7*180))
0.57763130100345

Notice that we have changed 30 degrees into radians while passing it in TAN function.


Filed Under: function Tagged With: how to use tan function in oracle database query, how to use tan function in oracle plsql, how to use tan function in oracle sql, syntax and example of tan function in oracle database query, syntax and example of tan function in oracle plsql, syntax and example of tan function in oracle sql, tan function in oracle plsql, tan function in oracle sql, TANPLSQL, using tan function in oracle database query, using tan function in oracle plsql, using tan function in oracle sql

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in