Entering content frame

QUERY specification (query_spec) 

QUERY specifications ( query_spec ) are required to generate an unordered result table in a SELECT statement. A QUERY specification is part of the syntax in a QUERY term (query_term) or QUERY term (named_query_term).

Syntax

<query_spec> ::= SELECT [<distinct_spec>] <select_column>,... <table_expression>

distinct_spec, select_column, table_expression

Explanation

A QUERY specification specifies a result table. The result table is generated from a temporary result table. The temporary result table is the result of the table expression.

Leaving content frame