Advanced Course
Recursive Queries
Master the most challenging type of SQL queries. Learn how to process trees and graphs in SQL, and how to effectively organize long SQL queries.
4.83
12,152 learners enrolled
Free trial Yes
Certificate of completion Yes
Time to complete 18 h
Coding challenges 114
Skills you will gain
- Understand and use basic Common Table Expressions
- Split long SQL queries with simple and nested CTEs
- Deploy recursive CTEs
- Write recursive CTEs that traverse a hierarchical data model
Last reviews
Description
Description
Common Table Expressions (CTEs), often simply called WITH clauses, are essentially just named subqueries. They are a fairly new feature of SQL; with CTEs, you can break a long query into smaller chunks, which makes it more readable. Unlike SQL subqueries, CTEs can be recursive, allowing the traversal of hierarchical models of enormous depth.
About the Common Table Expressions in SQL Course
This course will cover simple CTEs, nested CTEs, and recursive CTEs. You will learn how to manage your SQL queries with CTEs, how and when to nest CTEs, and how to use recursive CTEs to move through hierarchical data models.
This course is intended for intermediate users. We assume the user knows the basics of SQL, including:
- How to select from a single table, including writing complex WHERE conditions
- How to JOIN tables
- How GROUP BY and HAVING work
- How SQL subqueries work
What Are the Requirements?
- A web browser
- Knowledge of basic SQL, including JOINs and GROUP BY clauses
What Am I Going To Get from This SQL Course?
You will discover how to:- Understand and use basic Common Table Expressions
- Split long SQL queries with simple and nested CTEs
- Deploy recursive CTEs
- Write recursive CTEs that traverse a hierarchical data model
Who Should Take This Course?
- Beginning database analysts
- Developers who want to keep their knowledge of SQL current
- Students taking classes in relational databases
- Anyone who wants to learn Common Table Expressions in SQL
Table of contents
Course progress 0%
Exercises completed 0/114
-
Test your knowledge of SQL
-
Your first encounter with Common Table Expressions
-
You'll get to know how to use nested CTEs
-
You'll find out what recursion is and how to use it in SQL queries
-
You'll get to know how to use INSERT, DELETE, UPDATE statements with CTEs
-
Test your knowledge in this final quiz
Get the Certificate of Competency in SQL
This certificate will confirm your practical SQL problem-solving skills