Part 1
1

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

Exemple sur les restrictions : 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.Quelles sont les colonnes affichées ?

R : Les colonnes codecli et nomcli.

2.Est ce que l'intégralité de ces colonnes ont été affichées ?

R : Non, le seul client affiché, est le client n°1, M. Dubois.

3.Quelle instruction a permis de sélectionner le client n°1

R : WHERE codecli=1
Validated example
SELECT codecli, nomcli 
FROM Clients WHERE codecli=1;
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

Request 1
codecli
nomcli
1
Dubois