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 27 28 29 30 31 32 33 34
|
select
numero_fichier as num_fichier,
annee as annee_fichier,
(
select sum(ROUND(t21.indemnite,2)) as tot_ind //champs dans le group by ou non ?
from table3 t21
inner join table2 t25 on ......
inner join table4 t26 on ......
inner join tableAnnee tcamp on ......
where t26.......=d1........
and tcamp.anee= (cast('2017' as integer))
) as indemnite_total ,
nvl(nbrejrs_pr, 0) as drt_payes_pr,
nvl(paiement_50e,0) as paiement_50e,
sum(heure_travaillé) as Temps_travaille,
drt_acq_pr1 - nvl(nbrejrs_pr, 0) as drt_reste_pr,
(NVL(td.nbheureAcci,0)) Nbh_accident_trav,
(NVL(decode(td.CommAcci,123,'Ignorer',456,'Demande ..........'),0)) AS commentaire_accident,
from tabledossier2
inner join table4 d1 on .......
inner join tableAnnee on ....
inner join ............ on ......
inner join ..... on s.......
group by
numero_fichier,
annee,
t21.indemnite,
paiement_50e,
drt_acq_pr1,
nbrejrs_pr,
td.nbheureAcci,
td.CommAcci |
Partager