select b.rn,a.db_no,a.data_no from (select db_no,data_no,sum(data_no) over(order by db_no) rn1 from table) a,
(select level rn from dual connect by level<(select sum(data_no) from table)) b
where a.rn1 >= b.rn and a.rn1 - a.data_no < b.rn