Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View not respecting ORDER BY clause
Message
From
25/07/2009 04:37:10
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01348243
Message ID:
01414436
Views:
35
>>Oracle supports ORDER BY in views and has for several versions. Is there any reason why I should not use it?
>
>What benefits do you get by using views with ORDER BY clause?
>
>It's not a part of ANSI SQL standard and may not be available in other databases.
>Also a query w/o ORDER BY clause is not suppose to return records in any particular order. IOW, if you switch FROM from a view to a table you'll get different result which is inconsistent.

All the database vendors add extensions to their database offerings.

But in our case, the users like to use views to analyze their data and they prefer to be able to view it in a particular order,

I believe this is another example of something Oracle can do and SQL Server can't. I am not trying to start an argument over the last statement rather just stating my opinion, :)

Regards,
William Chadbourne
Senior Programmer/Analyst
State of Maine - DAFS App Team

Oracle - When you care enough to use the very best!!
Previous
Reply
Map
View

Click here to load this message in the networking platform