Part 1
1

Exemple sur la suppression de table : Example SQL n°1

The questions should help you understand the code shown below.
Once you hold the solution, you can view the answer by clicking on the question title.

1.Quelle table a été supprimée ?

R : La table Locations

2.Comment indique-t-on le nom de la table à supprimer ?

R : On indique le nom de la table à supprimer après l'instruction DROP TABLE
Validated example
DROP TABLE Locations;
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

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