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.

Search conditions syntax in BNF<br />

Syntax<br />

Search condition<br />

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

search_condition ::=<br />

[ NOT ] predicate<br />

[ { AND | OR } { predicate | ( search_condition ) } ]<br />

Predicate<br />

Syntax<br />

predicate ::=<br />

basic_predicate<br />

| quantified_predicate<br />

| between_predicate<br />

| null_predicate<br />

| like_predicate<br />

| exists_predicate<br />

| in_predicate<br />

| outer_join_predicate<br />

Relational operator<br />

Syntax<br />

relop ::=<br />

= | | != | ^= | < | | >=<br />

Basic predicate<br />

Syntax<br />

basic_predicate ::=<br />

expr relop { expr | ( query_expression ) }<br />

Quantified predicate<br />

Syntax<br />

quantified_predicate ::=<br />

expr relop { ALL | ANY | SOME } ( query_expression )<br />

Between predicate<br />

Syntax<br />

between_predicate ::=<br />

expr [ NOT ] BETWEEN expr AND expr<br />

221

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

Saved successfully!

Ooh no, something went wrong!