| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 
 |  
SELECT DISTINCT a.struc_dads periode, a.dat_debut datdeb,
a.mot_deb_per motdeb ,e1.lib_rub libmotdeb,
a.dat_fin datfin,
a.mot_fin_per motfin, e2.lib_rub libmotfin ,
a.ind_valorise valorisation,
c.num_employ, c.nom_employ, a.idf_agent, d.nom_usuel, d.nom_prenom, d.num_insee,
 d.cle_insee
FROM gp.tdu_agtmot a, gp.emploi b, gp.employ c, gp.agtnat d,
gp.rub_ref e1, gp.rub_ref e2
WHERE a.num_employ = '01'
AND c.num_employ = a.num_employ
AND a.dat_debut >= '01/01/2005'
/*AND a.dat_fin >= '01/01/2005'*/
AND d.nom_usuel BETWEEN 'A' AND 'C'
AND a.idf_agent = d.idf_agent
AND a.idf_agent = b.idf_agent
AND d.num_grpaie ='4'
AND a.struc_dads = 'S41'
AND e1.cod_rub = 'S41.G01.00.002'
AND e1.val_rub = a.mot_deb_per
AND e2.cod_rub = 'S41.G01.00.004'
AND (e2.val_rub  = a.mot_fin_per (+)) 
AND a.idf_agent = '1202'
ORDER BY a.idf_agent, d.nom_usuel, c.nom_employ, a.struc_dads, a.dat_debut, a.dat_fin, a.mot_deb_per, a.mot_fin_per | 
Partager