Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Within many applications you need to construct queries that go beyond a basic SELECT statement, such as creating running totals, finding gaps in sequences, traversing a recursive hierarchy, or ranking data within a set. In this chapter, you will learn how to extend the querying techniques that you have learned within this book to encompass subqueries, common table expressions (CTEs), and ranking functions.
Exam objectives in this chapter:
Implement subqueries.
Implement CTE (common table expression) queries.
Apply ranking functions.
Lessons in this chapter: