Is is possible to select from execute block result? I want to perform some operation (sum etc..) from it.
select t1.*
from
( execute block
returns (
OUT_VALUE integer )
as
begin
...
suspend;
end ) t1
or
with
t1 as ( execute block ... )
select *
from t1
order by
t1.sort_column
Neither does not work. Anyone has an advice? Thanks!
You should create an independent stored procedure like
and then select on this proc