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:
00778030
Vues:
27
>>> 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
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform