Introduction to Views and User-Defined Functions
Views, indexed views, scalar functions and table-valued functions as reusable, secure building blocks for queries.
- 3 lessons
- Module quiz
Views and functions package query logic for reuse and security. Choosing the right form, such as an indexed view or an inline table-valued function, also decides how well the optimizer can run it.
What the exam expects
Questions test view options (SCHEMABINDING, CHECK OPTION), indexed views, scalar UDF inlining and the difference between inline and multi-statement table-valued functions, including APPLY.
How this module is organized
Views, View Options and Indexed Views covers views. Scalar User-Defined Functions and Inlining covers scalar UDFs and inlining. Inline and Multi-Statement Table-Valued Functions covers TVFs and APPLY.