I am trying to return rows which would be useful for setting the in condition in a query. Here is my query
SELECT LISTAGG(PRODUCTID, \',\') WITHIN GROUP (ORDER
SELECT LISTAGG(''''||PRODUCTID||'''', ',') WITHIN GROUP (ORDER BY RowSequence) FROM DWRE_ITEM_V