Establish a database view called “Collaborators” that is based on the “Customers” table. Create a view from the existing Customers table by using the SQL command provided below to say “Collaborators.”

Assignment

You’ll use the return merchandise authorization (RMA) entity relationship diagram (ERD) to build a database. Each of the tables in the ERD represents a database entity. The ERD is the blueprint for building your relational database.

Before you begin, do the following:
Make sure to download the Module Three Major Activity Database Documentation Template for this assignment. You’ll need to place your answers and screenshots in this document and then submit it for grading.
Check the Database Documentation Template Example to see expectations of what your assignment should look like.
Make sure to review the example RMA entity relationship diagram (ERD) that you should be using as a guide before you begin.
Review the module resources on how to capture screenshots, if necessary.
Go to your online integrated development environment (Codio), log in, start a new terminal session, and then create a database schema called QuantigrationRMA that can hold tables. List it out on the screen. Then, connect to the QuantigrationRMA schema.
Using the ERD as a reference, create the following tables with the appropriate attributes and keys:
A table to store customer information with a primary key of Customer ID
A table to store order information with a primary key of Order ID and foreign key of Customer ID
A table to store RMA information with a primary key of RMA ID and foreign key of Order ID
Manually add 10 records into the Customers table. The data can be made up for now, as you’ll populate all three tables later from the provided CSV files.
You’ve been asked to establish a database view called “Collaborators” that is based on the “Customers” table. 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.” Execute the following statements and provide one or more supporting screenshots showing the database view:
The following command is partially complete. Fill in the missing information in the brackets to complete it and run the commands correctly:
CREATE 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;
Submit your responses in the Module Three Major Activity Database Documentation Template.

Establish a database view called “Collaborators” that is based on the “Customers” table. Create a view from the existing Customers table by using the SQL command provided below to say “Collaborators.”
Scroll to top