Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select doesn't produce expected results
Message
De
25/10/2012 14:28:57
 
 
À
25/10/2012 14:12:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01555800
Message ID:
01555812
Vues:
50
>I had thought that
>
>LEFT JOIN q3 ON pagcleanad = address AND pagbusines = trade_name
>
>was equivalent to
>
>RIGHT JOIN q3 ON address=pagcleanad AND trade_name=pagbusines
>
>but it clearly is not. So when we talk about left and right what exactly are we talking about? Apparently it is not the order of the equivalency. If we say LEFT JOIN Q3 we are supposed to preserve all the records on the left, but which table is on the left if it is not determined by the order of the equivalency?

It's based on the order that you list the tables, that is, which is to the left and which is to the right of the JOIN keyword. The ON is irrelevant to this.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform