Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View with union and order by returns error
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00872222
Message ID:
00872690
Views:
15
View definitions cannot have an ORDER BY clause, nor are they needed. You should order your result set when you're selecting from the view, e.g.:

select * from myView order by col1, col2

HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform