Lesson 35. Views
Views are T-SQL statements that are actually stored on SQL Server and can be called repeatedly without having to write the same code over and over.
Views can be used just like a table. As such, they have numerous use cases such as simplifying code, or creating a denormalized dataset that can be read by BI tools like Power BI or Tableau.
Views are just SQL statements and do not allow any of the programming aspects of T-SQL such as variables or looping.
To see views in SSMS object explorer, expand the database you are working in and then expand the views folder. If you do this for the AdventureWorks database, you can see numerous views.
Examples
Creating A View
In [ ]:
Using A View
In [ ]:
Dropping A View
In [ ]:
Last updated