Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Union order
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01343299
Message ID:
01343353
Views:
21
>I've got something wrong as I get "The ORDER BY clause is invalid in views, inline functions, derived tables, and subqueries, unless TOP is also specified."
>
>The extra field doesn't bother me (yet anyway) so for now...I think...I like the field :)
>

The ORDER BY should be at the very end of your code, e.g.

select * from (our actual select statement) derived ORDER BY 1,6

But keep the field and be happy :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform