1 2 3 4
| SELECT telephones.Alias, fixe.[POSTE APPELANT], MonthName(Month(fixe.[DATE FACTURE])) AS Expr1, Year(fixe.[DATE FACTURE]) AS Expr2, Round(Sum(fixe.[MONTANT APPEL]),2) & "" AS sommeMontant, Round(Sum(fixe.[UNITES APPEL]),4) AS SommeDeDUREE_APPEL, Int((Sum(fixe.[DUREE APPEL])*86400)/3600) & ":" & Int(((Sum(fixe.[DUREE APPEL])*86400) Mod 3600)/60) & ":00" AS total_en_heure, contrat.Types
FROM fixe, telephones, contrat
WHERE (((fixe.[POSTE APPELANT])=[telephones].[telfixe]) AND ((contrat.Téléphone)=[telephones].[telfixe]))
GROUP BY telephones.Alias, fixe.[POSTE APPELANT], contrat.Types, fixe.[DATE FACTURE]; |
Partager