Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use nulls from outer join in SQL Union
Message
 
To
16/11/1998 13:08:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00157837
Message ID:
00157940
Views:
32
>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform