Le reste de la formation est réservé aux inscrits.
S'inscrire gratuitementSELECT COUNT(*) AS nb_ventes, SUM(montant) AS ca_total, AVG(montant) AS panier_moyen, MIN(date_vente) AS premiere_vente, MAX(date_vente) AS derniere_vente FROM commandes;
COUNT(*) = toutes les lignes. COUNT(colonne) = lignes où colonne IS NOT NULL.