1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> With Data As (
2 Select 82 As Num, To_Date('19/04/10','DD/MM/RR') DateJour, 10.9833 As Heure from dual union all
3 Select 82, To_Date('19/04/10','DD/MM/RR'), 13.3167 from dual union all
4 Select 82, To_Date('19/04/10','DD/MM/RR'), 14.1 from dual union all
5 Select 82, To_Date('19/04/10','DD/MM/RR'), 18.2 from dual
6 )
7 Select num, datejour, Cast(collect(heure) as sys.odcinumberlist) tab_heure
8 From Data
9 Group By num, datejour
10 /
NUM DATEJOUR
---------- --------
TAB_HEURE
--------------------------------------------------------------------------------
82 19/04/10
ODCINUMBERLIST(10,9833, 13,3167, 14,1, 18,2)
SQL> |
Partager