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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

YEAR<br />

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

138<br />

SELECT *<br />

FROM orders<br />

WHERE YEAR (order_date) = 2003;<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

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

Saved successfully!

Ooh no, something went wrong!