Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where clause or join
Message
From
21/09/1998 19:10:55
 
 
To
21/09/1998 18:32:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00139283
Message ID:
00139306
Views:
24
>>What is the deal between making table joins and just using the where clause to combine information from multiple tables based on common fields. The where clause seems to be extremly faster than the join clause.
>>
>>Thanks.
>
>Hmm..I've found the opposite to be true. Anyway, JOIN is more ASNI SQL compliant.


Maybe I'm not doing this right. I am trying to combine information from 6 tables.

1. torders (1-100 records)
2. otrack (90 fields 1000s of records)
3. cardimag (few fields but will retrieve 2 large memo fields for each torder record)
4. tcolor (tiny)
5. ucolor (tiny)
6. clstat (tiny)

torders is the main table. I need all torder fields to be joined with matching otrack fields and cardimag fields. Then out of that set I need all otrack fields with matching tcolor,ucolor,and clstat fields.

Here is what I was trying

SELECT {field names}
FROM torders JOIN otrack on torders.ship_order+otrack.ship_order;
JOIN cardimag on torders.id = cardimag.id,;
Previous
Reply
Map
View

Click here to load this message in the networking platform