Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with a select
Message
From
16/04/2004 07:58:58
 
 
To
15/04/2004 13:33:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00895243
Message ID:
00895488
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform