Part 1
1

Chapter 2 :
Trier les données

Exercice du chapitre trier les données : Exercice SQL n°5

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

Statement

Afficher les locations de la plus ancienne à la plus récente

  • 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
  • En informatique, une date ancienne est plus petite qu'une date récente.
    Need a clue
Enter your response
Result to obtain
Request 1
codecli
codefilm
datedebut
duree
7
9
2012-12-31
4
2
1
2013-04-09
2
7
7
2013-04-09
1
1
2
2013-04-11
1
1
4
2013-04-12
3
1
5
2013-04-13
3
3
2
2013-04-15
5
4
1
2013-04-17
1
4
6
2013-04-21
2
5
2
2013-04-25
3
6
8
2013-05-01
2
5 / 6
Exercice du chapitre trier les données