Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Union with Order clause not working
Message
From
24/02/2004 15:35:00
 
 
To
24/02/2004 15:29:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00880442
Message ID:
00880447
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform