Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Add Sum
Message
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Titre:
Divers
Thread ID:
01516559
Message ID:
01516562
Vues:
25
>
>;with cte as (SELECT q.GroupId, 
>       (SumOfcert_complete/CountOfcert_complete)*100 AS Percent_Certified, 
>       Groups.GroupName    FROM qryGroupCert_base AS q 
>    INNER JOIN Groups ON q.GroupId=Groups.GroupId)
>
>select * from cte
>UNION ALL
>select 0 as GroupID, SUM(Percent_Certified), 'ALL' as GroupName
>from cte
Why CTE?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform