Oracle
 sql >> Database >  >> RDS >> Oracle

Ripetere ogni valore n volte come righe in SQL

Prova questo:

select * from names
cross join (select rownum n from dual
            connect by level <= (select max(repeat) from names))
where n <= repeat
order by name