expand icon
book Database Processing: Fundamentals, Design, and Implementation 13th Edition by David Kroenke, David Auer cover

Database Processing: Fundamentals, Design, and Implementation 13th Edition by David Kroenke, David Auer

Edition 13ISBN: 978-0133058352
book Database Processing: Fundamentals, Design, and Implementation 13th Edition by David Kroenke, David Auer cover

Database Processing: Fundamentals, Design, and Implementation 13th Edition by David Kroenke, David Auer

Edition 13ISBN: 978-0133058352
Exercise 30

If you have not already installed MySQL 5.6 (or do not otherwise have it available to you), you need to install a version of it at this point. Write SQL statements to accomplish the following tasks, and save your work as *.sql scripts, as appropriate. Run your *.sql scripts in MySQL by using the MySQL Workbench.
In the Chapter 7 Review Questions, we introduced the Wedgewood Pacific Corporation (WPC) and developed the WPC database. Two of the tables that are used in the WPC database are:
DEPARTMENT (DepartmentName, BudgetCode, OfficeNumber, Phone)
EMPLOYEE (EmployeeNumber, FirstName, LastName, Department, Phone, Email)
Assume that the relationship between these tables is M-M, and use them as the basis for your answers to Review Questions .
NOTE: To run these project questions in an actual database, create a copy of the WPC database named WPC-CH10C-PQ with ONLY these two tables. This is necessary to simplify the foreign key constraints that we'll have to deal with- recall that EMPLOYEE and DEPARTMENT are also linked to PROJECT and ASSIGNMENT.
This will be simple for your students if they created SQL scripts as suggested in the text. If not, they will have to step through the entire database recreation-which should be a good lesson in WHY they should create, use and save SQL scripts!
-Create a user named WPC-10C-User with a password of WPC-10C-User+password. Assign WPC-10C-Use all schema privileges except GRANT to WPC-10C-PQ database.
Explanation
Verified
like image
like image

Review Question 10.31 is based...

close menu
Database Processing: Fundamentals, Design, and Implementation 13th Edition by David Kroenke, David Auer
cross icon