Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Full outer join
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00777987
Message ID:
00778092
Vues:
31
>>>> 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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform