From the course: MySQL Database Administration
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Challenge: Indexes and constraints - MySQL Tutorial
From the course: MySQL Database Administration
Challenge: Indexes and constraints
- [Host] All right, it's time for your assignment on indexes, keys, and constraints, for this assignment, a new client, Joe Tidyman, the owner of Sloppy Joe's Restaurant, needs some help optimizing his database so that it can scale. He already has the database set up, but he'll need your help adding keys, indexes, and constraints to make sure his data quality is protected as he ramps up the business and adds a very large number of records. You can use these queries to see what's in the tables already. Use schema, Sloppy Joe's, and then look in the customer orders, menu items, and staff tables. Now he's not prescribing the exact keys, indexes, and constraints that you'll need to add, so you as the database expert are going to need to take a look at his data structure and make those decisions for yourself so that his data is protected as he scales. Just like all the assignments, try and struggle through this on your own. Get to the answer and then come back and watch the solution video.…
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)
Creating an index4m 41s
-
(Locked)
The UNIQUE constraint4m 8s
-
(Locked)
The NOT NULL constraint3m 59s
-
(Locked)
Challenge: Indexes and constraints1m 12s
-
(Locked)
Solution: Indexes and constraints9m 24s
-
(Locked)
Stored procedures6m 27s
-
(Locked)
Challenge: Stored procedures2m 3s
-
(Locked)
Solution: Stored procedures4m 23s
-
(Locked)
Triggers7m 50s
-
(Locked)
Challenge: Triggers1m 41s
-
(Locked)
Solution: Triggers5m 8s
-
(Locked)
-
-