SQL Interview: 84 Nested views
This is a post in the SQL Interview series. These aren’t trick or gotcha questions, they’re just questions designed to scope out a candidate’s knowledge around SQL Server and Azure SQL Database.
Section: Development Level: Medium
Question:
You are reviewing your development standards and notice that there is a warning about making sure you don’t nest views.
Why would this be an issue?
Answer:
Nested views hide complexity, and worse, the SQL Server optimizer might not be able to eliminate all the tables from the query that it could otherwise have done. This can lead to serious performance issues that could have been avoided.
2025-10-07