Part 1
1

Chapter 7 :
Faire des restrictions à l'aide de champs calculés ou des fonctions : HAVING

Exercice sur les Having : Exercice SQL n°1

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

Statement

Les noms des clients dont le total des jours de location est supérieur à 4. Le résultat sera classé 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
Durée totale
Botas
5
Dubois
7
Malon
5
1 / 3
Exercice sur les Having