inquiry::={relation-expression|stream-clause'('relation-expression')'}
Searches the data in a relation or the stream defined in the REGISTER STREAM clause.
relation-expression
For details about specifying a relation expression, see 4.4.3 Relation expression.
If you specify a relation expression without specifying a stream clause, the result of the inquiry is acquired as a relation.
stream-clause
To specify a stream clause, enter a relation expression enclosed in parentheses (( )) following the stream clause. For details about specifying a stream clause, see 4.4.2 Stream clause.
When a stream clause is specified, the result of the inquiry is acquired as a stream.
None.
None.
Specifies a relation expression that generates a relation from the data in column a of stream s1. The generated relation is output as the relation q1. The underlined part indicates the inquiry.
REGISTER QUERY q1 SELECT s1.a FROM s1[ROWS 10];