23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example This example illustrates different formats for SYSDATE, SYSTIME, and SYSTIMESTAMP:<br />

TAN<br />

Syntax<br />

SELECT SYSDATE FROM test;<br />

SYSDATE<br />

-------<br />

09/13/2003<br />

1 record selected<br />

SELECT SYSTIME FROM test;<br />

SYSTIME<br />

-------<br />

14:44:07:000<br />

1 record selected<br />

SELECT SYSTIMESTAMP FROM test;<br />

SYSTIMESTAMP<br />

------------<br />

2003-09-13 14:44:15:000<br />

1 record selected<br />

Compatibility<br />

Progress extension<br />

Returns the tangent of expression.<br />

TAN ( expression )<br />

Example The following example shows how to use the TAN function:<br />

select tan(45 * pi()/180) 'Tangent of 45 degrees' from<br />

MYMATH;<br />

TANGENT OF 45 DEGREES<br />

---------------------<br />

1.000000000000000<br />

1 record selected<br />

Notes • TAN takes an angle (expression) and returns the ratio of two sides of a right triangle. The<br />

ratio is the length of the side opposite the angle divided by the length of the side adjacent<br />

to the angle.<br />

• expression specifies an angle in radians.<br />

TAN<br />

131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!