From the course: Advanced MySQL Database Administration
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Import remaining 2012 data - MySQL Tutorial
From the course: Advanced MySQL Database Administration
Solution: Import remaining 2012 data
- [Instructor] All right. This is the solution video for your assignment on importing the remaining 2012 data. For this assignment, Sally has given you two files, files four and five, and she wants you to import them into the order items, and order item refunds tables. Let's jump into workbench, and we'll walk through it. So by this point, I think the data import process should be pretty old hat to you. This assignment is a good way to reinforce it. And one thing I just want to show is how we can do some quick QA to make sure stuff is working as expected. So if we have selecting from the order items table, and separately, I'll also have something selecting from the order item refunds table. And so I'm going to say, MAC(created_at). And I'll do a COUNT(*) AS records. And we'll put the same thing down here. Great. So before we do anything, we'll take a look and in the order items table, we see April 30th there was the last record, and we see 159 records. And then similarly, in the order…
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)
Overview of create, insert, and delete1m 48s
-
(Locked)
Review: Creating a schema3m 24s
-
(Locked)
Review: Creating a table7m 7s
-
Review: Inserting records into a table10m 19s
-
(Locked)
Review: Deleting records10m 40s
-
(Locked)
Importing data from a file10m 21s
-
(Locked)
Challenge: Importing order item data1m 11s
-
(Locked)
Solution: Importing order item data10m 56s
-
(Locked)
Challenge: Importing refund data1m 32s
-
(Locked)
Solution: Importing refund data5m 1s
-
(Locked)
Challenge: Deleting records1m 36s
-
(Locked)
Solution: Deleting records4m 40s
-
(Locked)
Challenge: Import remaining 2012 data45s
-
(Locked)
Solution: Import remaining 2012 data5m 37s
-
(Locked)
Bonus: Load data4m 44s
-
(Locked)
-
-
-
-
-
-
-
-
-
-