Part 1
1

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

Exercice sur les jointures : Exercice SQL n°1

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

Statement

Afficher pour chaque film loué, le nom du film et la date de location. Le resultat devra être trié dans l'ordre alphabétique des films

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