Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use nulls from outer join in SQL Union
Message
From
16/11/1998 13:08:47
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00157837
Message ID:
00157897
Views:
30
Tim --


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).


>>Try SET NULL ON and/or SET NULLDISPLAY TO "".
>
>I tried it, and it did not work. Thanks for the suggestion! I hope you have more. :)
>
>I guess I could scrap the LEFT OUTER JOIN and go back to the old way of handling outer joins, that is, NOT EXISTS (subquery) or value NOT IN (sub query). I would rather not, since it looks like the LEFT OUTER JOIN syntax runs faster.
------------------------------------------------
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform