Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Support for ordering on AS
Message
From
30/03/2009 17:54:35
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01391988
Message ID:
01392246
Views:
48
>I didn't see anyone suggest this yet.
>
>
>...
>   order by 3 -- title
>
>
>For the ORDER BY clause you can use the column number. You can not use the column number in the GROUP BY clause.

This is what I had for a while but had to turn it with name reference because of problems it causes at the class definition and its expansion. For example, I have a property cField, for those lists you see here. If I switch two fields or change its order, I would have to think about change the ORDER BY 3 to another number for example. If I have ORDER BY FirstName, I wouldn't have to worry about it.
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
Next
Reply
Map
View

Click here to load this message in the networking platform