Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNION and order
Message
From
26/04/1999 13:54:40
 
 
To
26/04/1999 13:50:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00212225
Message ID:
00212226
Views:
23
>I'd like to combine 3 tables using UNION. But I dont need any order, I'd like to keep records in order they come from tables:
>table1, table2, table3.
>Is it possible?
>Thanks Mark

You can make it sure by adding one new field:
Select 1 as listorder, * From table1 ;
Order by 1 ;
Union All Select 2 as listorder, * From table2 ;
Union All Select 3 as listorder, * From table3 ;
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform