DAD 220 Module Three Major Activity Database Documentation Template

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

220

Subject

Mechanical Engineering

Date

Feb 20, 2024

Type

docx

Pages

6

Uploaded by cdpoole1

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: mysql> CREATE database QuantigrationRMA; mysql> USE QuantigrationRMA; 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:
mysql> CREATE TABLE Customers -> (Customer_ID INT, -> First_Name VARCHAR(25), -> Last_Name VARCHAR(25), -> Street VARCHAR(50), -> City VARCHAR(50), -> State VARCHAR(25), -> Zip_Code INT, -> 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:
mysql> CREATE TABLE Orders (Order_ID INT, Customer_ID INT, SKU VARCHAR (20), Description VARCHAR(50)); 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
mysql> CREATE TABLE RMA -> (RMA_ID INT, -> Order_ID INT, -> Step VARCHAR(50), -> Status VARCHAR(15); 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.
mysql> INSERT INTO Customers VALUES (100,'Alison','White','123 Hope Rd','Charlotte','NC','28025','7045123468'), -> (101,'Josh','White','124 Hope Rd','Concord','NC','28075','7045483295'), -> (102,'Lynn','White','126 Hope Rd','Concord','NC','28075','7045489524'), -> (103,'Kris','White','128 Hope Rd','Concord','NC','28075','7046489271'), -> (104,'Corey','Smith','130 Hope Rd','Concord','NC','28025','7044568167'), -> (105,'Mike','Smith','140 Hope Rd','Concord','NC','28025','7043468724'), -> (106,'Joe','Lee','142 Hope Rd','Concord','NC','28025','7043598467'), -> (107,'George','Lee','146 Hope Rd','Concord','NC','28025','7046438475'), -> (108,'John','Wright','148 Hope Rd','Concord','NC','28025','7045642381'), -> (109,'Joan','Wright','150 Hope Rd','Concord','NC','28025','7044586713'), -> (110,'Allen','Blair','152 Hope Rd','Concord','NC','28025','7049536472');
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." mysql> CREATE VIEW Collaborator AS SELECT Customer_ID AS Collaborator_ID,Customer_ID FROM Customers; mysql> DESCRIBE Collaborator; mysql> SELECT * FROM Collaborator LIMIT 5;
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