Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 table join
Message
 
 
To
17/02/2011 03:02:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01500313
Message ID:
01500515
Views:
30
>In a full join having the fastest way to calc each line may be important.
>I'm pretty sure that
select nvl(T.PK, P.PK) as PK, nvl(T.FK, P.FK) AS FK, P.pNo, P.pDesc, T.tno, T.tDesc;
>from Parts P full join Tools T on P.PK = T.PK and P.FK = T.FK into cursor csrToolsParts
>
>
>is easier on resources and for my taste on the eyes as well ;-)

I'm not exactly sure how does it work. It should work only if for each Main table PK we have sequence numbering without gaps, e.g.

Main PK = 1
FK = 1, 2, 3 in both tables.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform