Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Join two unrelated tables together
Message
De
07/02/2013 07:24:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01563331
Message ID:
01565380
Vues:
45
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform