Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this SQL?
Message
De
23/03/2004 14:49:54
 
 
À
23/03/2004 08:45:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00888825
Message ID:
00888995
Vues:
6
>Hi,
>What wrong with this sql? It works in command window, but cause error "SQL column 'iiD' is not found" from view designer and dataenvironment.
>

The problem is the order of your ON clauses. When you use nested joins (as the View Designer in VFP 7 and earlier does), the first ON is matched with the last two tables listed.

For example:

FROM Table1 ;
JOIN Table2 ;
JOIN Table3 ;
ON Table2.Key = Table3.Key ;
ON Table1.OtherKey = Table2.OtherKey

You need to reorganize the ON clauses in your query. If you're using the View Designer in a version earlier than VFP 8, you may find it difficult to get a complex query right and have to define it by hand.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform