The functions that can be called in the FROM clause of a query are from the table operator.
1 2 | SELECT * FROM TABLE( sales_retrieve (9005) RETURNS ( store INTEGER, item CLOB, quantity BYTEINT) ) AS ret; |
Output
1 2 | SELECT * FROM sales_retrieve(9005) AS ret (store, item, quantity); |