Reference no: EM133128347
Instructions:
Use the ‘Premiere Products Company' SQL script file found in the D2L content folder called ‘SQL Scripts'.
Paste the contents of this script into a query tab of MySQL Workbench and execute it. This will create the schema named premiere and populate it for you. After running the script, you will no longer need it.
Using MySQL SELECT commands, answer the questions listed below using the premiere schema.
Copy/paste the text from your SQL query and the output for each problem into the document and submit via the D2L drop box. Label each question with the appropriate question number.
Read each question carefully so you don't miss any steps; be sure to answer any accompanying questions for full credit.
Assignment Details:
Question 1. Using MySQL Workbench, reverse engineer the premiere schema to create the ERD. Add a text box to display your name within the ERD. Include a screenshot of your results here. This ERD is useful to help you determine which tables to use for the remainder of the assignment.
Question 2. Write a query to produce the output listed below. Only include customers that have not placed an order and sort the balance from highest to lowest. Why do you think these customers have a balance and assigned rep?

Question 3. Write a query to produce the output listed below. Order by total sale price per part in descending order.

Question 4. Write a query to produce the output listed below.

Question 5. Write a query to produce the output listed below. Hint - you will need to join three tables together and use a GROUP BY.

Question 6. Expanding on the results from Question 5, write a query to produce the output listed below. TotalSales should be based on number of units ordered and the quote price. Remove any customers without orders. Did the total number of orders change from your previous query? If so, why would the number change and which answer (Q5 or Q6) is correct?
