Question

In: Computer Science

Scenario: An auto shop is designing a database to keep track of repairs. So far, we...

Scenario: An auto shop is designing a database to keep track of repairs. So far, we have this UNF relation, with some sample data shown. Normalize to 1NF.

REPAIRS: # VIN, Make, Model, Year, ( Mileage, Date, Problem, Technician, Cost )

VIN

Make

Model

Year

Mileage

Date

Problem

Technician

Cost

15386355

Ford

Taurus

2000

128242

6/6/2014

Won’t start

Gary

$300

15386355

Ford

Taurus

2000

129680

6/20/2014

Tail light out

Trisha

43532934

Honda

Civic

2010

38002

6/18/2014

Brakes slow

Gary

$240

15386355

Ford

Taurus

2000

130786

7/5/2014

Windshield chip

Trisha

$20

Explain your reasoning here (not what you did but why you did it). Why did you create the relations the way you did?

Your 1NF relation or relations go here.

Solutions

Expert Solution

1. Analyzing the given relation:

The given relation has the details about the repair made on a Vehicle over time. Where:

a) VIN#: Is the unique number for the vehicle

b) Make, Model, Year: Are the attributes of Vehicle which shows its details and are same for a VIN for all repairs

c) Mileage, Date, Problem, Technician, Cost: These are the attributes of vehicle repair that shows the details about a vehicle at the time of repair, these values will change with each repair of same vehicle.

2. Why is it not in 1NF

The data relation shared is not in 1NF as:

a) It has no primary key assigned to the relation.

b) There are repeating group on attribute (Make, Model, Year) i.e. these values are being repeated for the vehicle for each repair as below where marked values are repeating groups:

3. Decomposing relation to make it in 1NF

The relation must be decomposed below to get the 1NF:

a) VEHICLE(VIN, Make, Model, Year)

Primary key: VIN

b) REPAIRS(VIN, Mileage, Date, Problem Technician, Cost)

Primary key: VIN, Mileage

Foreign key: VIN from VEHICLE (VIN)

Assumption: Every time a vehicle is brought into for repair, it will have different mileage, although a vehicle can be brought for repair on same date.

4. Why decomposition is done in this way

After decomposition the tables will look as below:

VEHICLE: The primary key is VIN and there is no repeating of any attribute value for same other attributes

REPAIRS: The table will look as below after normalization where the primary key defined without having repeating group:

Thus decomposing in such a way was removing the conditions which were being violated for meeting 1st normal form of the database. Thus these relations are decomposed in this way.


Related Solutions

Scenario: A builder needs a database to keep track of contractors he hires for various projects....
Scenario: A builder needs a database to keep track of contractors he hires for various projects. So far, we have this 2NF relation, with sample data shown. Normalize to 3NF. CONTRACTOR: # ConID, Lname, Fname, JobTitle, Company, Street, City, State, Zip, CompanyPhone, CellPhone ConID Lname Fname JobTitle Company Street City State Zip Phone CellPhone 2 Garcia Mary Carpenter Construct Co 123 Main Portland OR 97204 823-1234 645-5423 14 Jones Tomas Welder Construct Co 123 Main Portland OR 97204 823-1234 344-3475...
Consider the following set of requirements for a UNIVERSITY database that is used to keep track...
Consider the following set of requirements for a UNIVERSITY database that is used to keep track of students' transcripts. (a) The university keeps track of each student's name, student number, social security number, current address and phone, permanent address and phone, birthdate, sex, class (freshman, sophomore, ..., graduate), major department, minor department (if any), and degree program (B.A., B.S., ..., Ph.D.). Some user applications need to refer to the city, state, and zip of the student's permanent address, and to...
Design a database through the EER diagram to keep track of the teams and games of...
Design a database through the EER diagram to keep track of the teams and games of a sport league. Assume that the following requirements are collected (the English description of cardinal ration and partial/complete participate is NOT required, but you still need to provide the total/partial and cardino ration in your EER diagram) : The database has a collection of TEAM. Each Team has a unique name, players, and owner. The database also keeps the records of PLAYERS. Each player...
Ava wants to use a database to keep track of the data recordsfor her insurance...
Ava wants to use a database to keep track of the data records for her insurance company and to enforce the following business policies/requirements: USE MS ACCESS TO CREATE A DATABASE & RELATIONASHIP-Every customer must be uniquely identified.-A customer can have many insurance policies.-Every insurance policy must be uniquely identified.-An insurance policy must belong to a valid customer.-Every customer must be served by a valid insurance agent (employee).-An insurance agent (employees) serves many customers.-Every insurance agent (employee) must be uniquely...
1. A cosmetic product retailer needs to create a database to keep track of the information...
1. A cosmetic product retailer needs to create a database to keep track of the information for its business operations. The company has a web site that posts all its products. The product information includes product ID, product name, description, and unit price. The company also needs to keep track of customers’ information, including customer names, their shipping addresses, and the email address. The company creates an account for each customer for identification and tracking purpose. A customer can purchase...
A retailer, Continental Palms Retail (CPR), plans to create a database system to keep track of...
A retailer, Continental Palms Retail (CPR), plans to create a database system to keep track of the information about its inventory. CPR has several warehouses across the country. Each warehouse is uniquely named. CPR also wants to record the location, city, state, zip, and space (in cubic meters) of each warehouse. There are several warehouses in any single city. CPR stores its products in the warehouses. A product may be stored in multiple warehouses. A warehouse may store multiple products....
We are introduced to the magnetic field as a way to keep track of the force...
We are introduced to the magnetic field as a way to keep track of the force that arises from lenght contraction in special relativity. A moving distribution of charge becomes more dense in the right frame. So in a way, the magnetic field is just the E-field. However, when I glance over the physics of permanent magnets, it is said that their magnetic field arises from the integral sum of their electrons with aligned spin(which generates a magnetic moment).Spin is...
So far we far we have been discussing the advantages of HIT, but have not considered...
So far we far we have been discussing the advantages of HIT, but have not considered its disadvantages. Discuss at least three (3) of the disadvantages or challenges that can be encountered by adoption of the HIT, such as EHR (Electronic Health Record) or HIE (health Information Exchange).
Database Design and SQL The following relations keep track of airline flight information: Flights (flno: integer,...
Database Design and SQL The following relations keep track of airline flight information: Flights (flno: integer, from : string, to: string, distance: integer, departs: time, arrive: time, price: integer) Aircraft (aid: integer, aname : string, cruisingrange: integer) Certified (eid: integer, aid: integer) Employees (eid: integer, ename : string, salary: integer) The Employees relation describe pilots and other kinds of employees as well. Every pilot is certified for some aircraft and only pilots are certified to fly. Based on the schemas,...
In the design of communication links we must always keep track of the power needed to...
In the design of communication links we must always keep track of the power needed to represent the signals, the effects of the noise and the bandwidth needed. In a post answer the following : What do you think should be the comparison of signal power vs. noise power? What do you think will be the most effective method to increase the distance in a communications link? What do you think will be the most effective method to increase the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT