PB2019R3
IM V10.5
Oracle 12C
Native connection to Oracle
~~~~~~~~~~~~~~~~~~~~~~~
UPDATE: As you can probably tell, I have not created a DW from a stored procedure. However, I did find an example writtem by Terry Dykstra on using SPs for DWs. Apparently the trick is to have the SP return a REF CURSOR.
~~~~~~~~~~~~~~~~~~~~~~~
Boss has a script which is in the dw. It returns nothing, but it does update the tables needed for a report.
@extract_master.sql
The report has a retrieval.
select col1, col2, col3
from table1
UNION
select col1, col2, col3
from table12
;
What we want is a DW that is populated from the stored procedure, with the result set to be placed into the dw.
Q: If I remove the SELECT from the report and put it at the bottom of the stored procedure, can I then create a DW that uses this SP to populate the rows? Do I need to create a Manual Result Set?
Thank You!