Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scenario A friend of yours has opened Professional Electronics and Repairs (PEAR) to repair smartphones, laptops, tablets, and MP3 players. She wants you to create

Scenario A friend of yours has opened Professional Electronics and Repairs (PEAR) to repair smartphones, laptops, tablets, and MP3 players. She wants you to create a database to help her run her business. When a customer brings a device to PEAR for repair, data must be recorded about the customer, the device, and the repair. The customers name, address, and a contact phone number must be recorded (if the customer has used the shop before, the information already in the system for the customer is verified as being current). For the device to be repaired, the type of device, model, and serial number are recorded (or verified if the device is already in the system). Only customers who have brought devices into PEAR for repair will be included in this system. Since a customer might sell an older device to someone else who then brings the device to PEAR for repair, it is possible for a device to be brought in for repair by more than one customer. However, each repair is associated with only one customer. When a customer brings in a device to be fixed, it is referred to as a repair request, or just repair, for short. Each repair request is given a reference number, which is recorded in the system along with the date of the request, and a description of the problem(s) that the customer wants fixed. It is possible for a device to be brought to the shop for repair many different times, and only devices that are brought in for repair are recorded in the system. Each repair request is for the repair of one and only one device. If a customer needs multiple devices fixed, then each device will require its own repair request. There are a limited number of repair services that PEAR can perform. For each repair service, there is a service ID number, description, and charge. Charge is how much the customer is charged for the shop to perform the service, including any parts used. The actual repair of a device is the performance of the services necessary to address the problems described by the customer. Completing a repair request may require the performance of many services. Each service can be performed many different times during the repair of different devices, but each service will be performed only once during a given repair request. All repairs eventually require the performance of at least one service, but which services will be required may not be known at the time the repair request is made. It is possible for services to be available at PEAR but that have never been required in performing any repair. Some services involve only labor activities and no parts are required, but most services require the replacement of one or more parts. The quantity of each part required in the performance of each service should also be recorded. For each part, the part number, part description, quantity in stock, and cost is recorded in the system. The cost indicated is the amount that PEAR pays for the part. Some parts may be used in more than one service, but each part is required for at least one service. Tasks to be completed: a) Create a Crows Foot notation ERD to support the business operations of PEAR. b) Transform your ERD into relational model. c) For each table in your relational model, create the dependency diagram and show that your design is in 3NF. d) Create the SQL script to create your DB based on your relational model in part b. e) Run your script on MySQL Workbench to create your DB. Kent Institute Australia Pty. Ltd. Assessment Brief ABN 49 003 577 302 CRICOS Code: 00161E RTO Code: 90458 Version 2: 14th November 2022 Page 2 of 5 TEQSA Provider Number: PRV12051 f) Populate every table in your DB with few records. g) Create SQL statements to do the following: 1. Write SQL statement to show all the records in the table Customer. 2. Write SQL statement to show Customers first and last name for those who live in place where the zip code is 2113 or 2114. 3. Write SQL statement to show all records in the table Device where type is Samsung. 4. Write SQL statement to show Customers ID, first name, last name and all Device attributes for those devices they placed for repair. 5. Write SQL statement to list all parts whose description contains the word screen. 6. Write SQL statement to show all parts with cost between 10 and 50. 7. Write SQL statement to show all the repairs that were performed in March 2022. 8. Write SQL statement to show for each Customer ID, the number of repairs he placed with the company. Show the records in ascending order of Customer ID. 9. Write SQL statement to show for each Service the total cost of all Parts used in that Service. 10. Write SQL statement to show for each repair the number of Services performed for that repair and the total cost for all parts for that repair (including all services).

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions