1 2 3 4 5 6 7 8
| SELECT distinct 'produit' as pr,
SUM(recette_enr_sfinal_sysdate17.NOMBRE) as "Nbr 2017", SUM(recette_enr_sfinal_sysdate17.TOTAL_PAYE) as "Mnt 2017",
SUM(recette_enr_sum_final_sysdate.NOMBRE) as "Nbr 2018" ,SUM(recette_enr_sum_final_sysdate.TOTAL_PAYE) as "Mnt 2018" ,
CONCAT(ROUND((sum(recette_enr_sum_final_sysdate.nombre)/Sum(recette_enr_sfinal_sysdate17.nombre) *100 )),'%') as "nbr %" ,
CONCAT(ROUND((sum(recette_enr_sum_final_sysdate.TOTAL_PAYE)/Sum(recette_enr_sfinal_sysdate17.TOTAL_PAYE) *100 )),'%') as "mnt %"
FROM recette_enr_sum_final_sysdate , recette_enr_sfinal_sysdate17
where recette_enr_sum_final_sysdate.US_CODE_MERE=recette_enr_sfinal_sysdate17.US_CODE_MERE |
Partager