A query specifies a result table.
A query is a component of certain SQL statements. The three forms of a query are:
There is another SQL statement that can be used to retrieve at most a single row described under SELECT INTO.
Authorization
For each table or view referenced in the query, the authorization ID of the statement must have at least one of the following:
Group privileges are not checked for queries contained in static SQL statements.