HP Neoview SQL Reference Manual page 167

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

single-col [[AS] name]
specifies a column.
col-expr [[AS]name]
specifies a derived column determined by the evaluation of an SQL value expression in
the list. By using the AS clause, you can associate a derived column with a name.
See the discussion of limitations in
FROM table-ref [,table-ref]...
specifies a list of tables, views, derived tables, or joined tables that determine the contents of
an intermediate result table from which Neoview SQL returns the columns you specify in
select-list.
If you specify only one table-ref, the intermediate result table consists of rows derived
from that table reference. If you specify more than one table-ref, the intermediate result
table is the cross-product of result tables derived from the individual table references.
table [[AS] corr [(col-expr-list)]] | STREAM ( table) [[AS] corr
[(col-expr-list)]] [AFTER LAST ROW] | view [[AS] corr [(col-expr-list)]] |
STREAM (view) [[AS] corr [(col-expr-list)]] [AFTER LAST ROW] | (query-expr)
[AS] corr [(col-expr-list)] | (delete-statement [RETURN select-list]) [AS]
corr [(col-expr-list)] | (update-statement [RETURN select-list]) [AS] corr
[(col-expr-list)] | (insert-statement) [AS] corr [(col-expr-list)] |
joined-table
specifies a table-ref as a single table, view, derived table determined by the evaluation
of a query expression, a joined table, or a streaming table.
You can specify this optional clause for a table or view. This clause is required for a
derived table:
[AS] corr [(col-expr-list)]
specifies a correlation name for the preceding table reference table-ref in the
FROM clause. See
col-expr [[AS] name] [,col-expr [[AS] name]]...
specifies the items in col-expr-list, a list of derived columns.
For the specification of a query expression, see the syntax diagram for query-expr
above.
STREAM (table) [[AS] corr [( col-expr-list)]]
returns a continuous data stream from a table. A cursor opened on a continuous data
stream never returns an end-of-data condition but blocks (waits) and resumes execution
when new rows become available.
[[AS] corr [( col-expr-list)]]
specifies an optional correlation name and an optional column list for the preceding
table reference in the FROM clause.
[AFTER LAST ROW]
causes the stream to skip all existing rows in the table and return only rows that are
published after the stream's cursor is opened.
STREAM (view) [[AS] corr [( col-expr-list)]]
returns a continuous data stream from a view.
[AFTER LAST ROW]
causes the stream to skip all existing rows in the view and return only rows that are
published after the stream's cursor is opened.
"Considerations for Select List" (page
"Correlation Names" (page
175).
238).
SELECT Statement
167

Advertisement

Table of Contents
loading

Table of Contents