I have to run multiple queries that are dependent on each other
select a from a ( result has multiple rows)
select b from b ( result has multiple rows)
the for each row in that query i need to run this
select c from c where c.a=a amd c.b=b
insert c into d
kinda like:
select a from a ( result has multiple rows)
select b from b ( result has multiple rows
for a in a
for b in b
select c from c where c.a=a amd c.b=b
insert c,a,b into d
is this possible to do as an stored procedure?
thank you