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:
Full outer join
Miscellaneous
Thread ID:
00777987
Message ID:
00777987
Views:
48
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.
Next
Reply
Map
View

Click here to load this message in the networking platform