From the course: MySQL Database Administration
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
Primary keys and foreign keys demo - MySQL Tutorial
From the course: MySQL Database Administration
Primary keys and foreign keys demo
- [Instructor] All right, so for this lecture, I'd like to build on what we just learned about primary keys and foreign keys. And I'd like to actually take you through a live demo on a pretty robust set of data so that you can see this in action. Let's jump into Workbench and I will walk you through the Maven Fuzzy Factory Mini dataset. All right, so the first thing I'm going to do is run a use on mavenfuzzyfactorymini. You should have this schema in your schemas tab as well. So just go ahead and hit Run. So first thing, let's take a look at all the tables that are in this schema. So when we look at these tables, we've got order_item_refunds_mini, we've got order_items_mini. orders_mini, and then website_pageviews_non_normalized. And don't worry about what non normalized is. We will get to that pretty soon in this course. For now, let's work with the orders table and the order_items and order_item_refunds. So before I show you what's actually in this dataset, let me give you a quick…
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)
Primary keys and foreign keys9m 30s
-
(Locked)
Primary keys and foreign keys demo12m 46s
-
(Locked)
Challenge: Table relationships1m 28s
-
(Locked)
Solution: Table relationships9m 50s
-
(Locked)
Database normalization2m 40s
-
(Locked)
Database normalization demo14m 36s
-
(Locked)
Challenge: Normalization1m 44s
-
(Locked)
Solution: Normalization5m 50s
-
(Locked)
The EER diagram editor19m 13s
-
(Locked)
Challenge: EER diagram editor1m 23s
-
(Locked)
Solution: EER diagram editor11m 34s
-
(Locked)
-
-
-
-