Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get rid of nulls in left join
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00734252
Message ID:
00734361
Views:
19
Hi Larry,

>This would require two passes through the data. One to get the intermediate table data and another to set replace the NULL values. NVL() would handle it in one pass. Both Oracle and SQL Server have this function to handle the same problem.

you're right! I was mislead by the phrase "IIF is not working". So I thought, if IIF isn't working in the LEFT JOIN, so NVL() wouldn't also. So I did a test now, and IIF *is* working ... But NVL() is the more elegant solution, of course.

Thanks for the clarification!

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform