Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select
Message
From
13/04/1998 17:55:01
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00091579
Message ID:
00091638
Views:
15
>I am do a sql select statement with a union all, when I ordery by the name of the fields it will not work, when I put the number of the field it will work. Why is this?
>
>Thanks,
>Matt

As for why, I couldn't tell you, but here is an excerpt from the foxpro help file (under select - sql)

UNION clauses follow these rules:

· Only the final SELECT can have an ORDER BY clause, which must refer to output columns by number. If an ORDER BY clause is included, it affects the entire result.

Murray
Previous
Reply
Map
View

Click here to load this message in the networking platform