You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
432 B
19 lines
432 B
-- Query 29
|
|
|
|
SELECT
|
|
serveur.numserveur AS 'numéro serveur',
|
|
serveur.nomserveur AS 'nom serveur',
|
|
COUNT(facture.numfacture) AS 'nb factures'
|
|
FROM serveur
|
|
LEFT OUTER JOIN facture ON facture.numserveur = serveur.numserveur
|
|
GROUP BY serveur.numserveur;
|
|
|
|
/* == RESULT ==
|
|
"Numéro Serveur","Nom Serveur","Nb factures"
|
|
50,"Durant Pierre",4
|
|
51,"Duchemin Paul",4
|
|
52,"Martin Cathy",12
|
|
53,"Pillot Alain",16
|
|
54,"Séré Alain",0
|
|
*/
|