Reputation:
If we had a query that references SQL Server views, do the views get evaluated separately (i.e. like a sub-query) or does it just get replaced by the view's query before evaluating it as a single query?
Hoping to optimize performance!
Upvotes: 0
Views: 226
Reputation: 89361
Just like a sub query a view is not evaluated separately. The view is combined with the referencing query and optimized as a single query.
Upvotes: 1