Part 1
1

Chapter 2 :
Effacer les données de la base

Exercice sur les Delete : Exercice SQL n°1

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

Statement
Supprimez toutes les lignes de la table 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
Clients
codecli
prenomcli
nomcli
ruecli
cpcli
villecli
1
Alberto
Dubois
3 Rue du Pont
57500
Saint-Avold
2
Mi
Volond
4 rue de la liberté
57500
Saint-Avold
3
Roger
Botas
5 place du marché
57500
Saint-Avold
4
Edouard
Noulas
41 rue de léglise
57600
Forbach
5
Paul
Lontague
21 Boulevard des oiseaux
57800
Freyming
6
Eric
Pondier
14, rue des Agates
57600
Forbach
7
Thomas
Malon
12, rue des lapins
57600
Forbach
8
Rénato
Point
451, rue de légalité
57500
Saint-Avold
9
Michel
Botas
17, rue des hochets
57500
Saint-Avold
10
David
Collague
14, rue Utrillo
57600
Forbach
11
Simon
Potillon
17, rue des marguerittes
57800
Freyming
Films
codefilm
nomfilm
1
C'est arrivé près de chez vous
2
Bernie
3
Dans la peau de John Malkovitch
4
Intouchables
5
Ong Bak
6
Shoot' Em UP
7
Tigres et dragons
8
Matrix 1
9
Machete
10
Boulevard de la mort
11
Brain dead
Locations
codecli
codefilm
datedebut
duree
Clients
codecli
prenomcli
nomcli
ruecli
cpcli
villecli
Films
codefilm
nomfilm
1
C'est arrivé près de chez vous
2
Bernie
3
Dans la peau de John Malkovitch
4
Intouchables
5
Ong Bak
6
Shoot' Em UP
7
Tigres et dragons
8
Matrix 1
9
Machete
10
Boulevard de la mort
11
Brain dead
Locations
codecli
codefilm
datedebut
duree
1 / 3
Exercice sur les Delete