What is a view and why we use it ? can we create nested views ?
Loading
What is a view and why we use it ? can we create nested views ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Howher MichaelPosted Aug 20, 2025, 1:10 PM
Hmm, I think a view is basically like a saved query in SQL. You use it so you don’t have to write the same complex query over and over. And yeah, I’ve tried creating nested views before, it works, but you just have to be careful about performance if the layers get too deep.
Vijay BansodePosted Aug 14, 2025, 7:10 AM
A View in SQL is like a saved query that acts like a virtual table.
Yes ? — you can create a view on top of another view.
But caution:
Too many nested views can reduce performance because SQL Server has to expand and run all underlying queries.
Debugging becomes harder when logic is buried inside multiple view layers.
Sometimes SQL Server has a nesting limit (e.g., 32 levels max).