Part 1
1

Chapter 3 :
Les jointures : afficher des colonnes depuis plusieurs tables

Exercice sur les jointures : Exercice SQL n°2

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

Statement

Afficher sans doublon le nom des villes dans lesquelles des clients ont loué des films. Le résultat sera trié dans l'ordre alphabétique des villes

  • 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
villecli
Forbach
Freyming
Saint-Avold
2 / 5
Exercice sur les jointures