Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
CTEs with data modifying statements
Summary
15. Exercise 1

Instruction

Now let's begin the review. Here's the first exercise.

Exercise

Insert data into new table number_orders. For each customer insert their id, first_name, last_name, city, and number of orders made by the customer. Use a CTE to prepare this data.