DP-800

Introduction to Advanced Query Techniques

Common table expressions, window functions, and correlated subqueries with APPLY for analytical and per-row logic.

  • 3 lessons
  • Module quiz

Common table expressions, window functions and correlated queries express analytical and per-row logic that simple SELECT statements cannot, and they appear throughout search, RAG and reporting code.

What the exam expects

Questions test recursive CTEs, ranking, aggregate and offset window functions with frames, EXISTS and NOT EXISTS, and CROSS and OUTER APPLY.

How this module is organized

Common Table Expressions and Recursion covers CTEs and recursion. Window Functions for Rankings and Running Totals covers OVER and the function families. Correlated Subqueries, EXISTS and APPLY covers per-row constructs. JSON, regular expression, fuzzy and graph queries have their own modules.

  1. Common Table Expressions and Recursion Lesson 1
  2. Window Functions for Rankings and Running Totals Lesson 2
  3. Correlated Subqueries, EXISTS and APPLY Lesson 3
  4. Practise and review
  5. Checkpoint Practice activities across the module
  6. Test your knowledge 5 questions