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

como calcular ranges no oracle

 select * from Table, (Select Level as Id from dual connect by Level <= (Select Max(End)      from Table)) t
 Where  t.Id between rr.Start and rr.End
 Order by Map, Start, Id