---------------------------------------- Select statements and select expressions ---------------------------------------- Semantics: A select statement is used to return data to the caller (PSQL module or the client program). Select expressions retrieve parts of data that construct both the final the result set or any of the intermediate sets. Select expressions are also known as subqueries. Syntax rules: [FOR UPDATE] [WITH LOCK] FROM WHERE GROUP BY HAVING PLAN ORDER BY ROWS [TO ]
::=
| | ::= { | } ::=
CROSS JOIN
::=
[{INNER | {LEFT | RIGHT | FULL} [OUTER]}] JOIN
ON ::= '('