Is it possible to do create a function to take in a query result and do some processing and return me a pipeline table. If it works for a normal function, i can get it to work for pipelined. Its not called from a stored proc, so don't know how to use cursor in this scenario.
select SF_PROCESS_FUNCTION(
select 'abcd' as keyVal, 'first value' as descVal from dual
union
select 'efgh' as keyVal, 'second value' as descVal from dual) from dual;
Any help will be greatly appreciated. Thanks