Recursive Common Table Expressions (CTEs)
Dive deep into recursion by learning about recursive common table expressions.
We'll cover the following
In SQL, recursion appears as a CTE with the RECURSIVE
modifier. Using this modifier, we can refer to the query within its definition. This approach to problem-solving requires practical training to get used to. Hence, we will review three problems of different difficulty levels and their solutions using recursive approaches.
Problem 1: Number sequence
Assume that we need to generate a continuous sequence of numbers from
Get hands-on with 1400+ tech skills courses.