Hi,
Is it possible to populate an associative array (or similar) based on the results of a query that combines multiple tables.
Pseudo code:
Cleary 'combinedTab' is not a physical table so I was wondering if this is possible?
Any help or pointers would be appreciated.
Thanks.
Is it possible to populate an associative array (or similar) based on the results of a query that combines multiple tables.
Pseudo code:
Code:
DECLARE
TYPE combinedTab IS TABLE OF combinedTab%ROWTYPE
INDEX BY BINARY_INTEGER;
combined_tab combinedTab;
BEGIN
SELECT tab1.col1, tab2.col2, tab3.col3
INTO combined_tab(tab1.col1)
FROM tab1, tab2, tab3
WHERE << EQUI-JOINS >>
END;
Cleary 'combinedTab' is not a physical table so I was wondering if this is possible?
Any help or pointers would be appreciated.
Thanks.