Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help with appending tables
Message
 
To
05/02/1997 10:54:00
David Wang
Sullivan Environmental Consulting, Inc.
Alexandria, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00019354
Message ID:
00019371
Views:
32
>I have two tables with similar fields that I want to merge into one table. For example, my first table has fields: description, xvalue, yvalue. My second table has fields: description, xvalue, yvalue, codenum. I want one table with the fields description, xvalue, and yvalue. When I use the SELECT - SQL command, I get two fields for description, xvalue, and yvalue, because they are from different tables (i.e., descriptionA, desciptionB, xvalueA, xvalueB, etc.).
>
>Any suggestions? Thanks in advance!


explicitly name your columns.

select firstTable.*, secondTable.codenum from firstTable, secondTable where [join conditions here]
Previous
Reply
Map
View

Click here to load this message in the networking platform