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:
Full outer join
Divers
Thread ID:
00777987
Message ID:
00777987
Vues:
51
In the "I think I'm brain dead" department, I'm trying to do a full outer join on two tables, with slightly different structures.

I've got two tables:
tblInsHours = person_id c(11)
              ihours n(3)


tblNonHours = person_id c(11)
               nhours n(3)
I want to combine these two tables and end up with
tblTotalHours = person_id c(11)
                  ihours n(3)
                  nhours n(3)
I want a full outer join on the tables. So, that if a person_id appears on one table, but not the other, it is still included in the sum of the two tables. I don't think I can use UNION, because the structure of the tables are different, and I want to keep the two kinds of hours separate.

I've been messing with the FULL OUTER JOIN syntax, but get, among other things, records with a .NULL. in the person_id field...which doesn't make any sense.

Thanks!
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform