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.