On 08-Oct-2015 14:06 -0600, Dave Boettcher wrote:
I did get the table function to work but I had to have the x like
this:
SELECT * FROM Table(Qsys2/Users()) x
Guess I should search out table functions to see what that's for.
The same requirement exists for a Nested Table Expression (NTE); i.e.
not specific to the use of TABLE().
The syntax requires a correlation-clause for the table-function; as
shown in the diagrams, and noted [emphasis mine] within the text:
[
http://www.ibm.com/support/knowledgecenter/api/content/ssw_ibm_i_71/db2/rbafztabref.htm]
"_table-reference_
A table-reference specifies an intermediate result table.
...
table-function
|--TABLE--(--function-invocation--)--correlation-clause-----|
...
correlation-clause
.-AS-.
|--+----+--correlation-name--+-----------------------+------|
| .-,-----------. |
| V | |
'-(----column-name-+--)-'
...
Each correlation-name is defined as a designator of the intermediate
result table specified by the immediately preceding table-reference. A
correlation-name *must be specified* for nested table expressions and
*table functions*.
..."
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.