Views represent virtual tables defined by underlying queries, and they add another layer of abstraction to the system. Views hide implementation details and can present queries with complex joins and aggregation as a single table. Moreover, views can be used to restrict access to the data and provide just a subset of the rows and columns to users.
There are two different kinds of views available in SQL Server: regular views and indexed (materialized) views. Let’s look at them in detail.
Views
Regular views are just the metadata. When you reference a view in your queries, SQL Server replaces it ...