Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with a select
Message
De
16/04/2004 07:58:58
 
 
À
15/04/2004 13:33:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00895243
Message ID:
00895488
Vues:
16
>SELECT RATE_AERIEN.IDRATE_AERIEN AS IDRATE_AERIEN,
>		RATE_AERIEN.AEROPORT_DEPART AS AEROPORT_DEPART,
>		RATE_AERIEN.AEROPORT_ARRIVE AS AEROPORT_ARRIVE,
>		Compagnie_aerienne.nom AS nom
>		FROM   RATE_AERIEN
>		LEFT OUTER JOIN Compagnie_aerienne ON Compagnie_aerienne.IDCompagnie_aerienne = RATE_AERIEN.COMPAGNIE_AERIENNE
>		WHERE Compagnie_aerienne.nom LIKE 'A%'
>
As this query is written, your LEFT JOIN isn't going to do you much good. You're only going to get the records that match the WHERE condition. If you want data from every RATE_AERIEN field matched only when the company begins with "A", you need to move the condition Compagnie_aerienne.nom LIKE 'A%' into the ON clause.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform