DAD 220 Module Three Major Activity Database Documentation Template

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

200

Subject

Mechanical Engineering

Date

Dec 6, 2023

Type

docx

Pages

7

Uploaded by DukeScienceBeaver3136

Report
DAD 220 Module Three Major Activity Database Documentation Template Overview Complete these steps as you work through the directions for this activity. Replace the bracketed text with your screenshots and brief explanations of the work they show. Each screenshot and its explanation should be sized to approximately one quarter of the page, with the description written below the screenshot. Follow these rules for each of the prompts and questions below. Review the example document for help. Create a Database 1. In your integrated development environment (IDE), create a database schema called QuantigrationRMA. List out the database name. Provide the SQL commands you ran to successfully complete this in your answer, then connect to it: [Insert screenshot and brief explanation here.] 2. Using the entity relationship diagram (ERD) as a reference, create the following tables with the appropriate attributes and keys : a. A table named customers in the QuantigrationRMA database as defined on the project ERD. Provide the SQL commands you ran against MySQL to complete this successfully in your answer:
[CREATED A TABLE FOR Customers CustomerID INT NOT NULL PRIMARY KEY, FirstName VARCHAR(25), LastName VARCHAR(25), Street VARCHAR(50), City VARCHAR(50), State VARCHAR(25), ZipCode VARCHAR(10), Telephone VARCHAR(15));.] b. A table named orders in the QuantigrationRMA database as defined on the project ERD. Provide the SQL commands you ran against MySQL to complete this successfully in your answer:
[CREATED A TABLE FOR Orders (OrderID INT NOT NULL PRIMARY KEY, CustomerID INT, SKU VARCHAR(20), -Description VARCHAR(50), FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID));] c. A table named rma in the QuantigrationRMA database as defined on the project ERD. Provide the SQL commands you ran against MySQL to complete this successfully in your answer:
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
[CREATE TABLE RMA ( OrderID INT, Step VARCHAR(50), Status VARCHAR(15), Reason VARCHAR(15), FOREIGN KEY (OrderID) REFERENCES Orders(OrderID)); 3. Manually add 10 records into the Customers table . The data can be made up for now, as you you’ll populate all three tables later from the provided CSV files.
[INSERT INTO Customers VALUES (156, ‘RACQUEL’, ’ESTERS’, ‘456 ELM ST’, ‘LAS VEGAS’, ‘NEV’, ‘56257’, 570-256-2626), (2364, ‘TORI’, ’WASHINGTON’, ‘785 HOPE ST’, ‘KATY’, ‘TX’, ‘15151’, 261-254-3848), (2617, ‘TERRELL’, ’WILSON’, ‘521 LAKE AVE’, ‘ORANGE’, ‘CA’, ‘98628’, ‘114-154-2184’), (1516, ‘BRIAN’, ’HILL’, ‘151 BEAR VALLEY ST’, ‘ATLANTA’, ‘GA’, ‘11104’, ‘154-254-1541’),
(0715, ‘JASMINE’, ’CHEREE’, ‘454 LOWE AVE’, ‘FONTANA’, ‘CA’, ‘25545’, ‘567-256-5671’), (2118, ‘DIANA’, ’JEAN’, ‘154 BLUE AVE’, ‘BUFFALO’, ‘NEW YORK’, ‘88157’, ‘556-440-6854’), (1213, ‘CARL’, ’JAMES’, ‘985 JUNCTION RD’, ‘PITTSBURG’, ‘AZ’, ‘99557’, ‘564-211-8975’), (1172, ‘STACY’, ’LEE’, ‘358 LINDEN AVE’, ‘LOS ANGLES’, ‘CA’, ‘35718’, ‘355-656-3548’), (7178, ‘SHANNON’, ’JONES’, ‘554 ARROW ST’, ‘KILEEN’, ‘TX’, ‘54154’, ‘456-858-6515’), (2425, ‘MYCHAL’, ’MARSH’, ‘952 BASELINE RD’, ‘PENSACOLA’, ‘FL’, ‘25757’, ‘978-124-1224’)); THEN USE SELECT * FROM Customers; ]
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
4. Create a view from the existing Customers table by using the SQL command provided below to say "Collaborators." The view should show all instances of "Customer" renamed as "Collaborator." [CREATED VIEW Collaborator AS SELECT CustomerID AS CollaboratorID, [Enter in the correct column names from that customer table that you want to change in the collaborator table] FROM Customers; DESCRIBE Collaborator; SELECT * FROM Collaborator LIMIT 5;]