Pipelined and Parallel Table Functions
(Table Function): This is a sample function (ppf_wip_op_seq) that
creates a list of operation sequence numbers grouped by wip_entity_id and
wip_entity_name using the Oracle ERP WIP schema tables. The input to a
table function can be a collection of rows (ref cursor) and can output a
collection of rows as required by the application. These functions
achieve high performance by three key features - streaming, pipelining
and parallel executing. The data processed by the table function is
piped out (PIPE ROW(v_result) as shown below) in a iterative manner
thereby optimizing the usage of memory.
Note: This is a guideline for creating a parallel pipeline function and
the functionality of the function shown below can be performed efficiently
by data concatenation functions