Hi All!
Right now we have a calling program that calls Stored Procedure (lets say SP1) that returns a results set.
Therefore the body of SP1 looks as follows:
BEGIN
DECLARE cur1 CURSOR WITH RETURN TO CALLER FOR
SELECT c1,c2,c3,c4
FROM tab1 JOIN tab2 ON...
WHERE cond;
OPEN cur1;
END
values c1 and c2 are from tab1 ;
values c3 and c4 are from tab2 ;
lets say I want to create a results set where I get values c1,c2,c3,c4 but not using a join.
Instead I want two SQLs
one SQL to get c1 and c2
second SQL to get c3 and c4
and each row of the results set is concat of o/p from SQL1 and o/p opf SQL2.
Any idea how that can be done ?
thank you.
Anil