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.

Notes • The argument to the function must be of type DATE.<br />

RADIANS<br />

Syntax<br />

RADIANS<br />

• If date_expression is supplied as a date literal, it can be any of the valid date_literal<br />

formats where the day specification (DD) precedes the month specification (MM).<br />

• The result is of type SHORT.<br />

• If the argument expression evaluates to NULL, the result is NULL.<br />

Compatibility<br />

ODBC compatible<br />

Returns the number of radians in an angle specified in degrees by expression.<br />

Example This example illustrates the RADIANS function:<br />

Notes • expression specifies an angle in degrees.<br />

RAND<br />

Syntax<br />

SELECT *<br />

FROM orders<br />

WHERE QUARTER (order_date) = 3 ;<br />

RADIANS ( expression )<br />

SELECT RADIANS(180) 'Radians in 180 degrees' FROM SYSPROGRESS.SYSCALCTABLE;<br />

• expression must evaluate to a numeric data type.<br />

Compatibility<br />

ODBC compatible<br />

Returns a randomly generated number, using expression as an optional seed value.<br />

RAND ( [ expression ] )<br />

Example This example illustrates the RAND function, supplying an optional seed value of ‘3’:<br />

117

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

Saved successfully!

Ooh no, something went wrong!