Part 1
1

Chapter 4 :
Les restrictions ou sélectionner les lignes à afficher : WHERE

Exercice sur les restrictions : Exercice SQL n°6

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

Statement

Afficher les noms et codes postaux des clients qui habitent en Moselle (département 57) 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
cpcli
Botas
57500
Botas
57500
Collague
57600
Dubois
57500
Lontague
57800
Malon
57600
Noulas
57600
Point
57500
Pondier
57600
Potillon
57800
Volond
57500