Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 Table SQL Join
Message
From
08/12/1999 14:11:01
 
 
To
08/12/1999 13:46:43
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00300033
Message ID:
00300527
Views:
32
Slight change:

>
select TableA.*, TableB.*, TableC.*;
> from TableA ;
> Left Outer Join TableB ;
> on TableA.Ident = TableB.Ident ;
> and TableA.FKey = TableB.FKey ;
> Left Outer Join TableC ;
> on TableA.Ident = TableC.Ident ;
 having (isnull(TableB.FiltB) or TableB.FiltB = 1);
> and (isnull(TableB.FiltC) or TableB.FiltC = 1)
>
>
>Gives the desired result at the cost of a Cartesian explosion that the having clause must filter. Is there a way to get the filtering done in the join and still get all five rows?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform