Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select * from 2 tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00307304
Message ID:
00307336
Vues:
20
You can use the ALL keyword in the UNION statement to get all the records. Read the Help on "Select - SQL" carefully.

Bill

>Thanks but if i do this, it only gives me identical records, it seems to eliminate duplicates. , my result table should contain 670 records but it only contains 91.
>
>Tanks
>
>
>>Stephane,
>>
>>You should use this:
>>
>>SELECT [fieldlist] FROM TABLE A ;
>>UNION ;
>>SELECT [fieldlist] FROM TABLE B
>>
>>Make sure both fieldlists are compatible, because the union clause can only be used this way. Look in the VFP Help for more info about the UNION clause in a SQL - Select.
>>
>>Regards,
>>Frank Camp
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform