SundancerKid
Programmer
I would like to create a stored procedure that
contains the following logic:
Create myproc with out parameters TempCPT4F
Create tempA1 table
Create tempA2 table
Create tempB1 table
Create tempB2 table
Create tempC1 table
Create tempC2 table
Create TempCPT4F table
---------------------------------------
-- Initial Selection with One to Many
Select Data and insert it into TempA1
--
-- Summarize TempA1 using Group BY and Order BY
Select Data from TempA1 and insert it into TempA2
---------------------------------------
-- Initial Selection with One to Many
Select Data and insert it into TempB1
--
-- Summarize TempB1 using Group BY and Order BY
Select Data from TempB1 and insert it into TempB2
---------------------------------------
-- Initial Selection with One to Many
Select Data and insert it into TempC1
--
-- Summarize TempC1 using Group BY and Order BY
Select Data from TempC1 and insert it into TempC2
---------------------------------------
Select and join TempA2, TempB2, TempC2 into TempCPT4F
Delete all temp files
--------------------------------------------------
I have done this before in MS SQL but I haven't done this in Oracle yet.
contains the following logic:
Create myproc with out parameters TempCPT4F
Create tempA1 table
Create tempA2 table
Create tempB1 table
Create tempB2 table
Create tempC1 table
Create tempC2 table
Create TempCPT4F table
---------------------------------------
-- Initial Selection with One to Many
Select Data and insert it into TempA1
--
-- Summarize TempA1 using Group BY and Order BY
Select Data from TempA1 and insert it into TempA2
---------------------------------------
-- Initial Selection with One to Many
Select Data and insert it into TempB1
--
-- Summarize TempB1 using Group BY and Order BY
Select Data from TempB1 and insert it into TempB2
---------------------------------------
-- Initial Selection with One to Many
Select Data and insert it into TempC1
--
-- Summarize TempC1 using Group BY and Order BY
Select Data from TempC1 and insert it into TempC2
---------------------------------------
Select and join TempA2, TempB2, TempC2 into TempCPT4F
Delete all temp files
--------------------------------------------------
I have done this before in MS SQL but I haven't done this in Oracle yet.