select t1, row_number() over ( partition by t1 order by t1), t2.* from (select 'X' as t1 from dual UNIOn select 'Y' from dual) t1, table (sys.odcivarchar2list('a', 'b', 'c')) t2;
select t1, row_number() over ( partition by t1 order by t1), t2.* from (select 'X' as t1 from dual UNIOn select 'Y' from dual) t1, table (sys.odcivarchar2list('a', 'b', 'c')) t2;