Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this SQL?
Message
From
23/03/2004 14:49:54
 
 
To
23/03/2004 08:45:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00888825
Message ID:
00888995
Views:
5
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform