Question: Please answer the questions for the assignment attached. Use the ER Diagram on the last page. Write each of the following queries. i . List
Please answer the questions for the assignment attached.
Use the ER Diagram on the last page. Write each of the following queries.
i List the Equipment serial number. List each number only one time.
ii List the Serial# and Description of all Equipment that has NOT been assigned to any employee. Order the list by Serial#
iii. Assume that all parts have been discounted by List each Part# Part Description, Cost, and DiscountedPrice for all Parts that originally cost more than $
iv List each Date and the number of Repairs that were made on that date.
v List the ID of the employee that has been assigned the equipment with serial number
vi Create the listing of all Repairs that have Invoice# greater than Sort the results by Equipment Serial# descending. Each row in the listing should read:
Repair Invoice Number: Invoice# Problem is: Problem
For example: Repair Invoice Number: Problem is: Missing Memory
SELECT CONCAT Repair Invoice Number: Invoice# CONCAT Problem is: Problem
FROM Repair
WHERE Invoice#
ORDER BY Serial# DESC;
End of example
vii. List the repair invoice# that occurs before and has a problem with either "Circuit" or "Battery",
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
