Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Join three tables
Message
From
02/11/1998 23:15:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00153390
Message ID:
00153803
Views:
22
Hi Ken,

Thanks for your reply.

Let me describe the relation between these three tables (Order, Order-1 and Order-2) in more details.

Order (Order-No, Order-Date, Cust-Code,...)
Key = Order-No
Order-1 (Order-No, Stock-No, Color-ID, Order-Qty, Order-Price,...)
Key = Order-No
Order-2 (Order-No, Stock-No, Color-ID, Deli-Qty, Deli-Date,...)
Key = Order-No + Stock-No + Color-ID

Each Order can have more than one Order-1 records.
Each Order-1 can have more than one Order-2 records.

I want to join these three tables to form a new table which contain the following attributes:-
(Order-No, Order-Date, Cust-Code, Stock-No, Color-ID, Order-Qty, Order-Price, Deli-Qty, Deli-Date,...)

I want to use the Select - Join statement of join those three tables.
Order table is used the key (Order-No) to join with the Order-1 table.
Order-1 table is used the key (Order-No+Stock-No+Color-ID) to join with the Order-2 table.

And i want to know how to join these three tables.

Thanks for your assistance.

Dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform