Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outer Join in SQL
Message
De
28/04/2000 14:43:45
 
 
À
28/04/2000 13:59:32
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00364597
Message ID:
00364626
Vues:
21
>LEFT JOIN Impact!UCnCnMet ;
> ON UCnCnMet.iContactId = UContact.iId ;
>INNER JOIN Impact!SCntMeth ;
> ON SCntMeth.iId = UCnCnMet.iContactMethodId ;

You haven't said what results you're getting, but I suspect the problem is in the lines I quoted. Once you use an outer join, you generally need all the joins that follow it logically to be outer joins as well. Otherwise, the records that were added by the outer join get dropped by the subsequent joins because they don't match up to anything in the tables that are added in the later joins. Try changing the join with SCntMeth to a LEFT JOIN.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform