I am able to get rows into columns following query :
select listagg(UC_SELECTED_COLUMN, ',' ) within group (order by UC_SELECTED_COLUMN) from TABLE_TEST group by UC_SELECTED_TABLE order by UC_SELECTED_TABLE;
In addition to this, i need to pass above query into In CLAUSE of another query. Can you please help me?