Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two tables/ report (correction)
Message
De
04/01/2002 07:50:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/01/2002 07:47:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00600527
Message ID:
00600685
Vues:
16
>
>select Name, address, state from Table1
>  union select Name, Address, state from Table2;
>  order by 1;
>  into cursor TmpResultado
>
>
>Note that ORDER BY can only be done by number.
>
>Hilmar.

Also note that the two (or more) parts of the UNION must exactly match, in field type, size and decimals. Sometimes, you must fill in information, like:

... union select space(30) as Name... from Table3

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform