La palme a grosmethos k'a trouve
BRAVO et MERCI
SELECT LB.LIBELLE,SUM(DUREE_APPEL),AVG(DUREE_APPEL),COUNT(DUREE_APPEL),COUNT(LB.LIBELLE)
,SUM(MONTANT),AVG(MONTANT)
FROM ST_HISTO_STAT ST, ST_LIBELLE LB
WHERE
ST.ID_PREFIX_APPELANT = LB.ID_LIBAUTO AND
TO_CHAR(DATE_APPEL,'DD/MM/YYYY') BETWEEN '01/01/2001' AND '22/06/2001'
GROUP BY LB.LIBELLE ORDER BY LB.LIBELLE;