Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
Introduction
The very basics
8. Basic recursion: exercise
Infinite looping
Processing graphs with recursive CTE
Summary

Instruction

Excellent. Let's do an additional exercise to practice.

Exercise

Create a recursive query that will show three columns:

  • num - even numbers from 2 to 20,
  • num_plus_prev - that number plus the previous number,
  • num_square - the number squared.

Stuck? Here's a hint!

In order to get squared values, multiply the value by itself.