Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper syntax when using UNION
Message
From
24/01/2002 15:33:31
 
 
To
24/01/2002 15:31:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00609414
Message ID:
00610059
Views:
15
>So If you wish to use order by with names you should have additional AS clauses with names different from your field names.

See, this is where the problem is. If you don't do any ORDER BY, look at the SQL result. All the field names are as is. So, there shouldn't be any reason why I should do SELECT myfield AS myfield,myfield2 AS myfield2. This doesn't make any sense. There is something wrong when using UNION.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform