1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
select a.*,b.*
from
(select * from
(
select coalesce(cd_forf,cd_bout,cd_abon,cd_soin) code,lig_libell,
lig_qte,lig_mt_pu,lig_mt_tot,rownum num,lig_date,cd_facid
from f_lig
where cd_facid=88222
and lig_tp_lig in ('S','B','F','O')
order by lig_date desc
)
where num =1) A ,
(select * from
(
select coalesce(cd_forf,cd_bout,cd_abon,cd_soin) code,lig_libell,
lig_qte,lig_mt_pu,lig_mt_tot,rownum num,lig_date,cd_facid
from f_lig
where cd_facid=88222
and lig_tp_lig in ('S','B','F','O')
order by lig_date desc
)
where num =2) B |
Partager