1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
SQL> with xpleins as (
2 select 103 idcam_0,70 xchrono_0,
3 to_date('05/09/06','DD.MM.RR') dateplein_0 from dual union all
4 select 103,32,to_date('04/09/06','DD.MM.RR') from dual union all
5 select 103,35,to_date('04/09/06','DD.MM.RR') from dual union all
6 select 103,69,to_date('04/09/06','DD.MM.RR') from dual )
7 select xchrono_0,dateplein_0 from xpleins where idcam_0=103
8 and dateplein_0<=to_date('05/09/06','DD.MM.RR')
9 order by dateplein_0 desc, xchrono_0 desc;
XCHRONO_0 DATEPLEI
---------- --------
70 05.09.06
69 04.09.06
35 04.09.06
32 04.09.06 |