Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Using 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 a new table called number_orders. For each customer, insert their id, first_name, last_name, city, and the number of orders made by that customer. Use a CTE to prepare this data.