From the course: Advanced MySQL Database Administration
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Challenge: Creating and updating orders - MySQL Tutorial
From the course: Advanced MySQL Database Administration
Challenge: Creating and updating orders
- [Instructor] All right, we are ready for your assignment on creating an order summary table. So, Sally's come to you, and she said that now that you have multiple products, she would love to have a table that's summarizing the full orders. She wants you to create a table that will capture the order_id, when the order was created, the website session-id that drove the order, the primary product_id, and also the total price and cost of goods sold in US dollars. She'd like you to back-populate this table after you create it using the records from the order_items table. So, just to be clear, you've already done the work to create the order_items table, and you have all this data stored on the central database. Now, Sally wants you to take that item-level data and roll it up to the order level in this new table. For those of you who have taken our Beginner and Advanced Analysis Courses, creating this back-population query that's going to summarize the orders will be no problem. For…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Review: Triggers basics8m 37s
-
(Locked)
Triggers deep dive34m 17s
-
(Locked)
Challenge: Creating and updating orders2m 7s
-
(Locked)
Solution: Creating and updating orders6m 35s
-
(Locked)
Challenge: Triggers2m 19s
-
(Locked)
Solution: Triggers5m 10s
-
(Locked)
Challenge: Testing your trigger system2m 9s
-
(Locked)
Solution: Testing your trigger system4m 4s
-
(Locked)
-
-
-
-
-
-