Computer Science homework help.
For project part 2, I would like for you to build the following database shown in Project Part 2 ERD in DB2. Then I will ask you to answer some questions using SQL Queries.
Insert 5 rows of data into your tables (you make it up), except for client #1 has to be Marvel Studios, contact Stan Lee, phone 111-222-3333.
Remember to build and populate one table at a time. Start with your tables that do not have FK’s to avoid errors.
QUERIES!
Insert 5 rows of data into your tables (you make it up), except for client #1 has to be Marvel Studios, contact Stan Lee, phone 111-222-3333.
Remember to build and populate one table at a time. Start with your tables that do not have FK’s to avoid errors.
QUERIES!
- Provide a listing of all the projects for Stan Lee.
- Create a query that uses a COUNT function.
- Create a query that uses a SUM function.
- Create a query that uses either a MIN or a MAX function.
- Create a query that uses an INNER JOIN
- Create a query that uses either a LEFT or a RIGHT OUTER JOIN.
HINT: Some of you have an index named X1AC (You would normally name the account index this). So if you get an error when creating your index, just change the last character of the name!
To turn in your assignment, please take screenshots of:
- The successful output for the tablespaces, tables, and indexes.
- The successful data insert statements for each table.
- The successful queries and their outputs.
Paste the images into word and then save it as a .pdf. No other file types will be accepted.
-
Project_Part_2_ERD.pdf
-
88C39C2C-28FE-4F2C-9ED7-D7DFF804B630.jpeg
-
D9AFB1D6-1D6D-4859-9D47-A6D713B49805.png