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.

DAYNAME<br />

Syntax<br />

Compatibility<br />

ODBC compatible<br />

DAYNAME<br />

Returns a character string containing the name of the day (for example, Sunday through<br />

Saturday) for the day portion of date_expression. The argument date_expression can be the<br />

name of a column, the result of another scalar function, or a date or timestamp literal.<br />

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

DAYOFMONTH<br />

Syntax<br />

select database() from t2;<br />

DATABASE<br />

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

1 record selected<br />

DAYNAME ( date_expression )<br />

SELECT *<br />

FROM orders<br />

WHERE order_no = 342 and DAYNAME(order_date)= 'SATURDAY';<br />

ORDER_NO ORDER_DATE REFERENCE CUST_NO<br />

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

342 08/10 tdfg/101 10001<br />

1 record selected<br />

Compatibility<br />

ODBC compatible<br />

Returns the day of the month in the argument as a short integer value in the range of 1–31. The<br />

argument date_expression can be the name of a column, the result of another scalar function,<br />

or a date or timestamp literal.<br />

DAYOFMONTH ( date_expression )<br />

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

91

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

Saved successfully!

Ooh no, something went wrong!