DAD 220 Module Three Major Activity Database Documentation Parise

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

220

Subject

Mechanical Engineering

Date

Jan 9, 2024

Type

docx

Pages

4

Uploaded by ConstableArtMantis35

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: Command: create database QuantigrationRMA; Command: 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: Command: CREATE TABLE Customers (CustomerID, INT NOT NULL PRIMARY KEY, FirstName VARCHAR(25), LastName VARCHAR(25), StreetAdress VARCHAR(50), City VARCHAR(50), State VARCHAR(25), Zipcode VARCHAR(10), Telephone VARCHAR(15)); Describe Customers; 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: Command: CREATE TABLE Orders (OrderIN INT NOT NULL PRIMARY KEY, CustomerID INR, SKU VARCHAR(20), Description VARCHAR(50), FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)); Describe Orders;
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: Commands: CREATE TABLE RMA (RMAID INT NOT NULL PRIMARY KEY, OrderID INT, Step VARCHAR(50), Status VARCHAR(15), Reason VARCHAR(25), FOREIGN KEY (OrderID) REFERENCES Orders(OrderID)); Describe RMA; 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.
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
Command: INSERT INTO Customers Values( 1, 'Sally', 'Pierce', '10_First_Street', 'Boston', 'MA', 23456, 2075644), (2, 'John', 'Paul', '2nd Street', 'Portland', 'ME', 04553, 2075631918), (3, 'Abby', 'Schoulz', '184_Granby_Drive', 'Norflok', 'VA', 23504, 7576689963), (4, 'Mark', 'Young', '33_Scott_Drive', 'Ashton', 'CT', 56377, 236554896), (5, 'Everett', ' Walton', '12Treehill_Drive', 'Damariscotta', 'ME', 04569, 2078915533), (6, 'Grayson', 'Parise', '809Wakefield_Avenue', 'Norfolk', 'VA', 23502, 9518160260), (7, 'Laura', 'June', '3124Maudvile_Ave', 'Sufolk', 'VA', 23456, 7576688564), (8, 'Henry', 'Tailor', '56_ELderflower_Road', ‘Seatle’, 'WA', 84563, 9518642233), (9, 'Holly', 'Jones', '12_Masonry_Ave', 'Woster', 'MA', 23544, 3692581155), (10, ‘David’, ‘Blackford’, ‘57_Greenbriar_Avenue’, ‘Chesapeake’, ‘VA’, 23452, 8795631122); SELECT*FROM Cutomers; 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." Command: CREATE VIEW Collaborator AS SELECT CustomerID AS CollaboratorID, FirstName, LastName, StreetAdress, City, State, ZipCode, Telephone FROM Customers; decribe Collaborator;