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

Apr 3, 2024

Type

docx

Pages

6

Uploaded by JusticeGoatMaster855

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: I forgot to screen shoot. CREATE DATABASE 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 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:
CREATE TABLE RMA (RMAID INT,OrderID INT,Step VARCHAR(50),Status VARCHAR(15), Reason VARCHAR(15), PRIMARY KEY(RMAID)); 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: CREATE TABLE orders (RMAID INT,OrderID INT,Step VARCHAR(50),Status VARCHAR(15), Reason VARCHAR(15),PRIMARY KEY(RMAID)); c. 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:
CREATE TABLE Customers (CustomerID INT,FirstName VARCHAR(25),LastName VARCHAR(25),StreetAddress VARCHAR(50),City VARCHAR(50),State VARCHAR(25),ZipCode VARCHAR(10),Telephone VARCHAR(15),PRIMARY KEY(CustomerID)); 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
INSERT INTO Customers (CustomerID, FirstName, LastName, StreetAddress, City, State, ZipCode, Telephone) VALUES (11, 'Joe', 'Smith', 'Main St.', 'Houston', 'IN', 770098, 2106797543), (12, 'Dan', 'Jones', 'H St.', 'San Antonio', 'IN', 77097, 2106973291), (13, 'Greg', 'Campbell', 'A St.', 'Pittsburgh', 'IN', 77059, 9653210588), (14, 'Tim', 'Skerrit', 'Cherry Blossom', 'Denver', 'IN', 41236, 5963214444), (15, 'Debby', 'Hobbs', '16th Ave.', 'Houston', 'IN', 77098, 8563254521), (16, 'Mo', 'Mixer', 'Street St.', 'Poppy', 'NY', 74326, 8536984521), (17, 'Ray', 'Planter', 'Avenue St.', 'Austin', 'MO', 74230, 8529631478), (18, 'Tom', 'Hobbs', ' Breeze', 'San Antonio', 'IN', 96325, 1239854523), (19, 'Ed', 'Helms', 'Summer Breeze', 'San Antonio', 'IN', 96325, 1234567896), (20, 'Caleb', 'Crane', 'K BLVD', 'Galveston', 'TX', 78965, 2136943201); 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."
CREATE VIEW Collaborators AS SELECT CustomerID AS CollaboratorID, FirstName, LastName, StreetAddress, City, State, ZipCode, Telephone
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