Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use nulls from outer join in SQL Union
Message
De
16/11/1998 10:50:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157837
Message ID:
00157841
Vues:
25
Tim ---

Try SET NULL ON and/or SET NULLDISPLAY TO "".

>
>SELECT ;
> MainCase.DAddress AS cByAddress, ;
> MainCase.DCity AS cByCity, ;
> MainCase.DState AS cByState, ;
> MainCase.DTaxID AS cByTaxID, ;
> MainCase.DZip AS cByZip ;
>FROM MainCase ;
>WHERE MainCase.Office + MainCase.CaseNo = ?gcOfficeCaseNumber ;
>UNION ALL ;
>SELECT ;
> Joint.JDAddr, ;
> Joint.JDCity, ;
> Joint.JDState, ;
> Joint.JDTaxID, ;
> Joint.JDZip ;
>FROM ;
> MainCase LEFT JOIN Joint ;
> ON Joint.Office + Joint.CaseNo = MainCase.Office + MainCase.CaseNo ;
>WHERE MainCase.Office + MainCase.CaseNo = ?gcOfficeCaseNumber
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform