Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with a query
Message
From
21/12/2006 12:12:52
 
 
To
21/12/2006 02:59:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01179447
Message ID:
01179603
Views:
11
>The problem is that i have two IDs in the table SEMENSALES pointing to the same id on table CV, let me explain you with this example:

In such circumstances, it is not a problem. You only have to add another INNER JOIN with the AS clause. Here is an example:
SELECT Parent.Name,Parent2.Name FROM Child;
 INNER JOIN Parent ON Child.NoParent=Parent.PrimaryKey;
 INNER JOIN Parent AS Parent2 ON Child.NoParent2=Parent2.PrimaryKey;
 WHERE ...
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform