Part 1
1

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

Exercice sur les restrictions : Exercice SQL n°5

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

Statement

Afficher le nom et la ville des clients qui habitent Forbach ou Saint-Avold 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
villecli
Botas
Saint-Avold
Botas
Saint-Avold
Collague
Forbach
Dubois
Saint-Avold
Malon
Forbach
Noulas
Forbach
Point
Saint-Avold
Pondier
Forbach
Volond
Saint-Avold
5 / 6
Exercice sur les restrictions