Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started