1 2 3 4 5
| SELECT MaTable.[Code Fiche], MaTable.NOM, MaTable.PRENOM, MaTable.[N° de l'épreuve], MaTable.COEFFICIENT, MaTable.Points_acquis, DCount("*","[MaTable]","[Points_acquis]>=" & [Points_acquis] & " AND [NOM] like '" & [Nom] & "'") AS TopScore
FROM MaTable
GROUP BY MaTable.[Code Fiche], MaTable.NOM, MaTable.PRENOM, MaTable.[N° de l'épreuve], MaTable.COEFFICIENT, MaTable.Points_acquis
HAVING (((DCount("*","[MaTable]","[Points_acquis]>=" & [Points_acquis] & " AND [NOM] like '" & [Nom] & "'"))<6))
ORDER BY MaTable.NOM, MaTable.Points_acquis DESC; |
Partager