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.
Solution: Deleting records - MySQL Tutorial
From the course: MySQL Database Administration
Solution: Deleting records
- [Instructor] Alright, this is the solution video for your assignment on deleting data. As a reminder, Amy needs your help deleting an employee's record from her employee table and she'd also like you to remove all records from the customer reviews table so that she can start fresh. Let's jump into Workbench and walk through the solution. Alright, so first thing I'm going to do is select the candy store schema with a use statement. So now our candy store schema is set as the default and we can just look at what we have in here. We've got two tables, customer reviews and employees. So, let's take a look. She wants us to help her out with both of these. First, let's take a look at employees. (keyboard keys clicking) Just running our select star and we've got all the records in here. So, the employee in question, Maggie Simpson, was caught for having fake customer ratings and she's been fired and Amy wants us to help her by deleting this record from the database. So, we'll get to that…
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)
Inserting records into tables8m
-
(Locked)
Updating data records7m 33s
-
(Locked)
Challenge: Inserting and updating records1m 30s
-
(Locked)
Solution: Inserting and updating records7m 30s
-
(Locked)
Deleting specific records9m 41s
-
(Locked)
Deleting all records with TRUNCATE10m 28s
-
(Locked)
Challenge: Deleting records1m 32s
-
(Locked)
Solution: Deleting records8m 16s
-
(Locked)
-
-
-
-
-