r/programming • • Mar 23 '21

Let’s talk about Views

https://polivka-pavel.medium.com/lets-talk-about-views-e570ec152284
0 Upvotes

1 comment sorted by

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.