Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Union with Order clause not working
Message
De
24/02/2004 15:35:00
 
 
À
24/02/2004 15:29:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00880442
Message ID:
00880447
Vues:
30
>I can't figure this one out...
>
>This command doesn't work:
>
>SELECT 'Sold' as Dataset,* from sold ;
>       UNION select 'Mailed' as Dataset,* from mailed ;
>       ORDER BY cRow INTO CURSOR temp
>
>
>This command DOES work:
>
>SELECT 'Sold' as Dataset,* from sold ORDER BY cRow INTO CURSOR temp
>


Besides what Gunnar told you about the order column, consider that Union works if both table columns (fields) being returned are the same. You used * in both. Are the two file structures the same?


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform