Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
3 Table SQL Join
Message
De
08/12/1999 14:11:01
 
 
À
08/12/1999 13:46:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00300033
Message ID:
00300527
Vues:
31
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform