Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Full outer join
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00777987
Message ID:
00778092
Views:
30
>>>> complete utter solution
>
>>NVL() function should help you. Something like (not tested)
>
>
>SELECT NVL(ins.person_id, non.person_id) AS person_id, ;
>>		INT(NVL(ins.nhours, 0)) AS ihours, ;
>>		INT(NVL(non.nhours, 0)) AS nhours ;
>>	FROM tblInsHours ins ;
>>		FULL OUTER JOIN tblNonHours non ;
>>			ON ins.person_id = non.person_id ;
>>	INTO CURSOR tblTotalHours		
>>
>
>
>
>It works it works!
>
>Not only does it solve my problem, but I didn't know you could use the table alias as shown in your example, and I didn't know about the NVL function.
>
>Many Many Thanks, Sergey.
>
>-- L

Hi Larry,

Glad to be of so much of help. :)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform