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.

Timestamp literal<br />

OpenEdge <strong>SQL</strong> Elements and Statements in Backus Naur Form<br />

Timestamp with time zone literal<br />

Query Expressions syntax in BNF<br />

Syntax<br />

Syntax<br />

Syntax<br />

timestamp_literal ::=<br />

{ t 'yyyy-mm-dd hh:mi:ss' } |'date_literal time_literal'<br />

Syntax<br />

timestamp_with_time_zone_literal ::=<br />

{ t 'yyyy-mm-dd hh:mi:ss - hh:mi:ss' }| 'date_literal time_literal'<br />

Query expression<br />

query_expression ::=<br />

query_specification<br />

| query_expression set_operator query_expression<br />

| ( query_expression )<br />

Set operator<br />

Syntax<br />

set_operator ::=<br />

{ UNION [ ALL ] | INTERSECT | MINUS }<br />

Query specification<br />

query_specification ::=<br />

SELECT [ ALL | DISTINCT ]<br />

{ *<br />

| { table_name.| alias.}* [, { table_name.| alias.}* ] ,...<br />

| expr [ [ AS ] [ ']column_title[' ] ]<br />

[, expr [ [ AS ] [ ']column_title[' ] ] ] ,...<br />

}<br />

FROM table_ref [, table_ref ] ...<br />

[ WHERE search_condition ]<br />

[ GROUP BY [ table.]column_name<br />

[, [ table.]column_name ] ,...<br />

[ HAVING search_condition ]<br />

[WITH locking_hints ]<br />

;<br />

219

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

Saved successfully!

Ooh no, something went wrong!