CHAPTER 9

image

Views

Views represent virtual pseudo 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 the users.

There are two different kinds of views available in SQL Server: regular and indexed (materialized). Perhaps this is not the standard terminology; that is, regular views are just called views, although I will clearly differentiate them in the chapter.

Regular Views

Regular ...

Get Pro SQL Server Internals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.