Part 1
1

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

Exercice sur les jointures : Exercice SQL n°4

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

Statement

Pour chaque client qui a loué un film, le nom du client, le nom du film loué, et la date de début de la location. Le résultat sera affiché dans l'ordre alphabétique des noms des clients

  • 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
nomcli
nomfilm
datedebut
Botas
Bernie
2013-04-15
Dubois
Bernie
2013-04-11
Dubois
Intouchables
2013-04-12
Dubois
Ong Bak
2013-04-13
Lontague
Bernie
2013-04-25
Malon
Tigres et dragons
2013-04-09
Malon
Machete
2012-12-31
Noulas
C'est arrivé près de chez vous
2013-04-17
Noulas
Shoot' Em UP
2013-04-21
Pondier
Matrix 1
2013-05-01
Volond
C'est arrivé près de chez vous
2013-04-09
4 / 5
Exercice sur les jointures