Part 1
1

Chapter 6 :
Regrouper : GROUP BY

Exercice sur les regroupements : Exercice SQL n°1

The goal of the exercise is to apply what you have learned using the examples.

Statement

Le nombre de clients dans chaque ville dans une colonne qui s'appelle "Nombre de clients par ville"

  • Show relational schema Download tables (PDF)
  • Table Clients (codecli, prenomcli, nomcli, ruecli, cpcli, villecli)
    Primary key : codecli

    Table Films (codefilm, nomfilm)
    Primary key : codefilm

    Table Locations (codecli, codefilm, datedebut, duree)
    Primary key : codecli, codefilm
    Foreign key : codefilm of the table Films, codecli of the table Clients
Enter your response
Result to obtain
Request 1
Nombre de clients par ville
4
2
5
1 / 3
Exercice sur les regroupements