Part 1
1

Chapter 1 :
Afficher des colonnes depuis une table

Exemple sur l'affichage de colonnes depuis une 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 est la colonne affichée ?

R : La colonne nomcli.

2.De quelle table provient cette colonne ?

R : De la table Clients.

3.Quelle est l'instruction qui indique dans quelle table il faut chercher la colonne à afficher ?

R : L'instruction FROM.

4.Quelle est l'instruction qui permet de choisir la colonne à afficher ?

R : L'instruction SELECT.
Validated example
SELECT NomCli 
FROM Clients;

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
nomcli
Dubois
Volond
Botas
Noulas
Lontague
Pondier
Malon
Point
Botas
Collague
Potillon
1 / 6
Exemple sur l'affichage de colonnes depuis une table