Answered step by step
Verified Expert Solution
Link Copied!

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 10%. List each Part#, Part Description, Cost, and Discounted_Price for all Parts that originally cost more than $100.00.
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 111.
vi. Create the listing of all Repairs that have Invoice# greater than 1845. 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: 2738 Problem is: Missing Memory
SELECT CONCAT ('Repair Invoice Number:', Invoice#), CONCAT ('Problem is:', Problem)
FROM [Repair]
WHERE Invoice# >1845
ORDER BY Serial# DESC;
**End of example
vii. List the repair invoice# that occurs before 2014-1-18 and has a problem with either "Circuit" or "Battery",
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is human nature?

Answered: 1 week ago