alonsyl
Messages postés
348
Date d'inscription
mardi 6 avril 2004
Statut
Membre
Dernière intervention
6 novembre 2008
12
4 oct. 2008 à 21:21
ca y est, j'ai la solution.
voici ma table de depart :
<meta http-equiv= "Content-Type" content="text/html;charset=UTF-8" /><title>MaTable</title><caption> MaTable </caption>----
NomEleve |Matiere |Note |----
Eugénie, Anglais, 15, ----
Eugénie, Maths, 9, ----
Eugénie, Philo, 12, ----
Fabien, Anglais, 14, ----
Fabien, Maths, 7, ----
Fabien, Philo, 10, ----
Raymond, Anglais, 20, ----
Raymond, Maths, 16, ----
Raymond, Philo, 2, ----
René, Anglais, 11, ----
René, Maths, 13, ----
René, Philo, 7, ----
Simone, Anglais, 14, ----
Simone, Maths, 10, ----
Simone, Philo, 12, <tfoot></tfoot>
voici ma rqte :
TRANSFORM SUM(Note) AS total
SELECT NomEleve
FROM MaTable
GROUP BY NomEleve
PIVOT Matiere;
et voici le resultat retourne :
<meta http-equiv ="Content-Type" content="text/html;charset=UTF-8" /><title>Requête1</title><caption>Requête1</caption>----
NomEleve |Anglais |Maths |Philo |----
Eugénie, 15, 9, 12, ----
Fabien, 14, 7, 10, ----
Raymond, 20, 16, 2, ----
René, 11, 13, 7, ----
Simone, 14, 10, 12, <tfoot></tfoot>
merci de ton aide [../auteur/NHERVAGAULT/84425.aspx nhervagault] !