Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query designer relating tables
Message
 
To
13/01/2003 20:04:17
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00741247
Message ID:
00741267
Views:
18
>Why can't I make a query ivolving four tables

Because the Query Designer has issues. You can create the query (or view) in code to get it to work properly, but instead of:
SELECT * ;
   FROM tableA ;
      JOIN tableB ;
         JOIN tableC ;
            ON tableB.id2 = tableC.id2 ;
         ON tableA.id = tableB.id
create it like:
SELECT * ;
   FROM tableA ;
      JOIN tableB ON tableA.id = tableB.id ;
      JOIN tableC ON tableB.id2 = tableC.id2
In other words, list the joins sequentially, instead of nested, as the QD does.

This has been fixed in VFP8, but in the meantime, writing the code manually is your best bet.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform