DAD 220 Module Three Major Activity Database Documentation

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

4

Uploaded by AdmiralAnt6230

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: This step creates a new schema or database called "QuantigrationRMA" where we will create our tables and other database objects. The next step ensures that we are connected to the newly created "QuantigrationRMA" schema, so that any subsequent commands are executed within this schema. 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:
This step creates a table called "Customers" with columns to store customer information such as CustomerID, FirstName, LastName, StreetAddress, City, State, ZipCode, and Telephone. The CustomerID column is set as the primary key. 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: This step creates a table called "Orders" with columns to store order information such as OrderID, CustomerID, SKU, and Description. The OrderID column is set as the primary key, and the CustomerID column is a foreign key referencing the CustomerID column in the Customers table. 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:
This step creates a table called "RMA" with columns to store RMA (Return Merchandise Authorization) information such as RMAID, OrderID, Step, Status, and Reason. The RMAID column is set as the primary key, and the OrderID column is a foreign key referencing the OrderID column in the Orders table. 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. This step inserts 10 records into the Customers table with made-up data for each customer. Each record includes values for columns such as CustomerID, FirstName, LastName, StreetAddress, City, State, ZipCode, and Telephone.
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." This step creates a view named "Collaborators" that is based on the "Customers" table. The view selects specific columns from the Customers table and assigns aliases to some columns, such as renaming CustomerID to CollaboratorID. The next step retrieves and displays the structure or schema of the "Collaborators" view, including the column names, data types, and any constraints.