I have 2 procedures p1 and p2 each giving results in format as below
exec p1----> #col1 #col2
              P-1   52
              P-2   25
EXEC p2----> #col1 #col2
              P-1   20
              P-2   2
              P-3   5
I want to call these procedure in another procedure which will execute the two procedure ,create a temp table and insert the result of the two table as shown below:
#col1 #col2 #col3
P-1    52    20
P-2    25    2
P-3    NULL  5
I am new to using Temp table any help would be appreciated. This code has to be run in SQL server. Regards,
 
     
    