DP-800

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.

  1. Views, View Options and Indexed Views Lesson 1
  2. Scalar User-Defined Functions and Inlining Lesson 2
  3. Inline and Multi-Statement Table-Valued Functions Lesson 3
  4. Practise and review
  5. Checkpoint Practice activities across the module
  6. Test your knowledge 5 questions