- Exercises 114
- Estimated time 18h
- Skill level advanced
- Users enrolled 973 users
- Rating 4.2/5 (5)
- Certificate of completion PDF
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.
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:
86%
off
Reg. price
$1442
Includes 36 courses Python Basics. Part 1, Python Basics. Part 2, Python Basics. Part 3, Python Data Structures in Practice, Built-in Algorithms in Python, Working with Strings in Python, SQL Basics, SQL Practice Set, SQL JOINs, Standard SQL Functions, Creating Basic SQL Reports, Window Functions, Revenue Trend Analysis in SQL, How to INSERT, UPDATE, and DELETE Data in SQL, Recursive Queries, Creating Tables in SQL, Statistics 101, SQL Basics in MS SQL Server, How to Insert, Update, or Delete Data in MS SQL Server, Common Functions in MS SQL Server, Revenue Trend Analysis in SQL Server, Creating Basic SQL Reports in SQL Server, Window Functions in MS SQL Server, Recursive Queries in MS SQL Server, GROUP BY Extensions in MS SQL Server, Introduction to Python for Data Science, How to Read and Write CSV Files in Python, How to Read and Write JSON Files in Python, SQL Basics in PostgreSQL, PostgreSQL JOINs, SQL Practice Set in PostgreSQL, Window Functions in PostgreSQL, Recursive Queries in PostgreSQL, Writing User-Defined Functions in PostgreSQL, PostGIS, How to Read and Write Excel Files in Python
Bundle price $199
36 hours left at this price!
67%
off
Reg. price
$369
Includes 9 courses SQL Basics, SQL Practice Set, SQL JOINs, Standard SQL Functions, Window Functions, How to INSERT, UPDATE, and DELETE Data in SQL, Recursive Queries, Creating Tables in SQL, PostGIS
Bundle price $119
36 hours left at this price!
44%
off
Reg. price
$143
Includes 3 courses Standard SQL Functions, Window Functions, Recursive Queries
Bundle price $79
36 hours left at this price!
Test your knowledge of SQL
0% completed 0 of 14 exercises done
Your first encounter with Common Table Expressions
0% completed 0 of 17 exercises done
You'll get to know how to use nested CTEs
0% completed 0 of 15 exercises done
You'll find out what recursion is and how to use it in SQL queries
0% completed 0 of 36 exercises done
You'll get to know how to use INSERT, DELETE, UPDATE statements with CTEs
0% completed 0 of 18 exercises done
Test your knowledge in this final quiz
0% completed 0 of 14 exercises done