Leçon 8: Requêtes II

Fonctions statistiques

Regroupements

SELECT champ1, champ2, ..., FONCTION(champ),...
FROM table
[WHERE condition]
[GROUP BY champs du SELECT]
[ORDER BY champ1 [ASC/DESC], champ2 [ASC/DESC], ...]

Conditions sur les regroupements

SELECT champ1, champ2, ..., FONCTION(champ),...
FROM table
[WHERE condition de ligne]
[GROUP BY champs du SELECT]
[HAVING condition de groupe]
[ORDER BY champ1 [ASC/DESC], champ2 [ASC/DESC], ...]


Index Leçons

[1] - [2] - [3] - [4] - [5] - [6] - [7] - [8 intra] - [9] - [10] - [11] - [12] - [13] - [14] - [15 final]


Dernière modification: 2006-03-28