Collection subqueries in the FROM clause
Collection subqueries are valid in the FROM clause of SELECT statements, where the outer query can use the values returned by the subquery as a source of data.
The query examples in the section Collection subqueries specify collection subqueries by using the TABLE keyword followed (within parentheses) by the MULTISET keyword, followed by a subquery. This syntax is the HCL® OneDB® extension to the ANSI/ISO standard for the SQL language.
In the FROM clause of the SELECT statement, and only in that context, you can substitute syntax that complies with the ANSI/ISO standard for SQL by specifying a subquery, omitting the TABLE and MULTISET keywords and the nested parentheses, to specify a collection subquery.
An advantage of this query over the TABLE(MULTISET(SELECT ...)) HCL OneDB extension version is that it can also be executed by any database server that supports the ANSI/ISO-compliant syntax in the FROM clause. For more information about syntax and restrictions for collection subqueries, see the HCL OneDB Guide to SQL: Syntax.