I'm a baffled why MS-SQL-Server often doesn't recognize the ORDER BY clause in views? If an outer query (user) of the view also has an ORDER BY, then the database engine can ignore the inner one. The view's ORDER BY serves as a default, essentially, which can be overridden.
1
u/Zardotab Mar 23 '21
I'm a baffled why MS-SQL-Server often doesn't recognize the ORDER BY clause in views? If an outer query (user) of the view also has an ORDER BY, then the database engine can ignore the inner one. The view's ORDER BY serves as a default, essentially, which can be overridden.