moi j'ai cree cette query:
comment je fais pour calculer les jour qui passent entre la date dim et la data_ingr_succ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 select cod_fisc, data_ingr, data_dim, lead(data_ingr,'1') over (partition by cod_fisc order by data_dim) data_ingr_succ, h.descr from sdo s, drg_2009 d, reparti_hsp h where s.cod_drg=d.cod_drg and s.rep_ingr=h.cod_rep and (cat_1 = 'F0' or cat_1='F00') and d.tipo_drg ='M' and anno='2008'
Partager