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: Adding and removing columns - MySQL Tutorial
From the course: MySQL Database Administration
Challenge: Adding and removing columns
- [Narrator] All right, we're ready for your assignment on altering tables. For this assignment, Amy Baker is the owner of the candy store and she needs your help making a couple of updates to one of her tables. She's about to start sharing her database with her employees, but she needs a couple of things updated before she can do that. So the first thing, she needs you to remove the hourly wage column from the employees table. She doesn't want all of her employees being able to see what everyone else is earning. And then second, on that same employees table, she'd like to add another column called avg_customer_rating. And she'd like that to be a decimal that has one digit past the decimal point. So here is what everything should look like if you've done it correctly. You should go from this table, the employees table, with an hourly wage column to an updated table, and you can see the difference. One of them has hourly wage, one of them has average customer rating, which at some…
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 a schema using the MySQL Workbench UI2m 54s
-
(Locked)
Creating a schema using SQL code4m 27s
-
(Locked)
Creating a table using the MySQL Workbench UI6m 52s
-
(Locked)
Creating a table using SQL code6m 3s
-
(Locked)
MySQL data types5m 40s
-
(Locked)
Challenge: Creating your own schema and tables2m 28s
-
(Locked)
Solution: Creating your own schema and tables12m 1s
-
(Locked)
Adding and removing columns using the MySQL Workbench UI13m 39s
-
(Locked)
Adding and removing columns with SQL code5m 4s
-
(Locked)
Challenge: Adding and removing columns1m 25s
-
(Locked)
Solution: Adding and removing columns6m 59s
-
(Locked)
Dropping schemas and tables6m 45s
-
(Locked)
Challenge: Dropping schemas and tables1m 46s
-
(Locked)
Solution: Dropping schemas and tables2m 22s
-
(Locked)
-
-
-
-
-
-