Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use nulls from outer join in SQL Union
Message
 
À
16/11/1998 13:08:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157837
Message ID:
00157940
Vues:
38
>Hmmmm...maybe the first part of the query is setting up a temp table where nulls are not allowed, huh? How about substituting NVL(fieldname,SPACE(20)) and the like for those columns in the SQL statement that may be NULL? (Substitute SPACE(20) for whatever the type/length equiv would be to keep the UNION valid).

It seems like using NVL() is the only viable solution to me. I guess a rule of thumb would be to use NVL when using outer joins and SQL unions. This is really a pain though.

Nancy Folsom also suggested changing the fields in base table(s) to support NULLs. This is not option for me, since the base tables are in FoxPro 2.x.

Thanks for your input!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform