DAD-220-Module-Three-Lab-CMoore

.docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

DAD 220

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

8

Uploaded by SargentWaterBuffalo9718

Cameron Moore DAD 220 Intro to Struct Database Env 1. Before you begin, type the following commands prior to typing MySQL to set file permissions. This will allow you to perform the file output creation: o chmod +x change_perm.sh o Press Enter. o ./change_perm.sh o Then, enter MySQL and reconnect to the employee information you entered in the previous lab. o Write a SELECT statement for the Employee table to check that you’ve reconnected to the right information.
Cameron Moore DAD 220 Intro to Struct Database Env 2. Update the name of the Branches table that you created in the previous lab to say "Department". a. Use an ALTER statement to successfully RENAME the "Branches" table to "Department". b. Capture these outputs in a screenshot to validate that you’ve successfully completed this step.
Cameron Moore DAD 220 Intro to Struct Database Env 3. Insert fields to the Department table so that you’ll be able to perform joins on them. a. INSERT INTO Department VALUES (1, 'Accounting'), (2, 'Human Resources'), (3, 'Information Systems'), (4, 'Marketing'); b. Write a SELECT statement for this table to prove this step, and validate that it ran correctly with a screenshot. 4. Now, perform joins between the Department and Employee tables and show results for how many employees work in each one of the four departments. This will only provide information on the records that are already there. a. Department 1 = Accounting
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help