Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WHERE has to be before ORDER
Message
 
To
07/03/2008 00:37:45
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01299623
Message ID:
01299643
Views:
11
>I just found out that in SQL Server, the WHERE clause has to be before the ORDER clause. Can someone confirms me that? If yes, is there a setting that affect that? It is not a big problem for me to adjust the code to support that however.

And not only, GROUP BY also need to be after WHERE.
Maybe because SQL Server needs first to get the records set and after that manipulate it.
I am not aware of settings that can be used to change this behavior.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform