Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Repita cada valor n vezes como linhas no SQL


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