Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining two tables
Message
 
 
To
27/07/2012 10:21:22
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01549418
Message ID:
01549426
Views:
34
>>You just need to join two tables, e.g.
>>
>>select T1.CustNo, T2.QS as 2011_QS, T1.QS as 2010_QS
>>FROM Table1 T1 inner join Table2 T2 on T1.CustNo = T2.CustNo
>
>as this would eat up 8 and 12, my first gut twitch would be to get distinct cust#
>first and left join twice.

See my other reply. If we have Customers which are not in both tables, we need to use FULL JOIN between two tables.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform