I have two procedures - two huge sets of samples with several sub-samples and joins. I need to combine the results of these procedures, and I still need them to exist separately.
Something like that:
if @Param = 1 Then
PROCEDURE1
if @Param = 2 THEN
PROCEDURE2
if @Param = 3 Then
PROCEDURE1 union PROCEDURE2
I read that it is not possible to combine procedures, and I cannot use temporary tables.
Any idea?
source
share