Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Join two unrelated tables together
Message
From
07/02/2013 07:24:01
 
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 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01563331
Message ID:
01565380
Views:
44
>Hi Frank,
>
>I want it like result 2
>
>>you have:
>>
>>
Table1
>>Field1, Field2, Field3
>>aaaaaa, bbbbbb, cccccc
>>
>>and
>>
>>
Table2
>>Field1, Field2, Field3
>>dddddd, eeeeee, ffffff
>>
>>and is your result is to look like this:
>>
>>
>>
Result2
>>Field1, Field2, Field3
>>aaaaaa, bbbbbb, cccccc
>>dddddd, eeeeee, ffffff
>>
SELECT Field1
         ,Field2
         ,Field3
   FROM Table1;
UNION ALL;
SELECT Field1
         ,Field2
         ,Field3
   FROM Table2;
INTO CURSOR Result2
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform