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 TIME.<br />

MOD<br />

Syntax<br />

• The argument must be specified in the format HH:MI:SS.<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 remainder of expression1 divided by expression2.<br />

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

Notes • Both expression1 and expression2 must evaluate to exact numeric data types.<br />

MONTH<br />

Syntax<br />

MOD ( expression1 , expression2 )<br />

SELECT MOD (11, 4) 'Modulus' FROM MYMATH;<br />

• If expression2 evaluates to zero, MOD returns zero.<br />

Compatibility<br />

ODBC compatible<br />

MOD<br />

Returns the month in the year specified by the argument as a short integer value in the range of<br />

1–12.<br />

MONTH ( date_expression )<br />

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

SELECT * FROM orders WHERE MONTH (order_date) = 6 ;<br />

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

107

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

Saved successfully!

Ooh no, something went wrong!