Question

In: Computer Science

The Scenario: A company is transitioning from a spreadsheet model to a database to track customers...

The Scenario:

A company is transitioning from a spreadsheet model to a database to track customers and purchases.

The Request:

  • You need to normalize the data up to N3.

Requirements and Information:

  • Normalize the below spreadsheet:
    • Normalize_Assignment2.csv

Need help as the following:

Upload an excel spreadsheet wit the normalized data

Customer Name Customer Address Phone Number(s) Products Purchased Distribution Warehouse Distribution Warehouse Address Distribution Warehouse Phone Number Date of Purchase
Matt Smith 11 Kevlar Ln., Grand Rapid, MI 49508 616-610-2718, 616 473-2813 Blu Ray Player, HDMI cable East Mountain Distribution Center 23 Hangster St. Brooklyn, NY 13867 212202-4321 10/31/18
Keith Jones 66 Buthers Point, Carson City, Nebraska 89403 775-246-3712 U2 Album West Coast Distribution Center 3245 Lovers Ln, Lexington, KY 21482 414.321.4326 11/1/18
Brian Adams 63 Lovingtin Cir., Newark DE 19701 410-428-2367 Retro Pi, MicroSD Card, Raspberry Pi Case Tri-State Distribution Center 1397 S. Main Street, Middletown, DE 19709 302-434-5566 10/31/18
Julia Townsend 5 Pennywise Ln., Yardley, PA 19067 972-274-6289 Blu Ray Player Tri-State Distribution Center 1397 S. Main Street, Middletown, DE 19709 302-434-5566 11/5/18
Mo Rocca 871 Eagle Ct., Newark, NJ 21908 Unknown Mini NES, DaVinci Code Book East Mountain Distribution Center 23 Hangster St. Brooklyn, NY 13867 212202-4321 10/31/18
Steven James 4 Autumn Ter., Boulder CO 80301 970-273-1856 White glue, glitter, saline solution, baking soda West Coast Distribution Center 3245 Lovers Ln, Lexington, KY 21482 414.321.4326 11/7/18
Rick Ford 333 33rd St NY, NY 10027 347-383-8844 Paint Set, Canvas, Paint Brushes East Mountain Distribution Center 23 Hangster St. Brooklyn, NY 13867 212202-4321 11/5/18
Harrison Wells 12534 Silver Lake Ave., Houston TX 77027 269-226-1599, 267-227-4891 Harry Potter Book Series West Coast Distribution Center 3245 Lovers Ln, Lexington, KY 21482 414.321.4326 11/3/18
Jen Cusak 8 Washington Ln., Baton Rouge LA 70808 645-378-2889 LOL Surprise Dolls West Coast Distribution Center 3245 Lovers Ln, Lexington, KY 21482 414.321.4326 11/7/18
Brian Adams 63 Lovingtin Cir., Newark DE 19701 302-338-6279, 410-428-2367 Cat Puzzle East Mountain Distribution Center 23 Hangster St. Brooklyn, NY 13867 212202-4321 11/3/18
Matt Smith 11 Kevlar Ln., Grand Rapid, MI 49508 Sweater Tri-State Distribution Center 1397 S. Main Street, Middletown, DE 19709 302-434-5566 11/3/18
Mo Rocca 33 Patriot Dr., Santa Monica, CA 90405 310-268-9921 Knife set East Mountain Distribution Center 23 Hangster St. Brooklyn, NY 13867 212202-4321 11/1/18
Brian Adams 63 Lovingtin Cir., Newark DE 19701 302-338-6279, 410-428-2367 Paint Brushes West Coast Distribution Center 3245 Lovers Ln, Lexington, KY 21482 414.321.4326 11/3/18

Expert Answer

An expert answer will be posted here

Solutions

Expert Solution

ORIGINAL DATABASE-

Customer Name Customer Address Phone Number(s) Products Purchased Distribution Warehouse Distribution Warehouse Distribution Warehouse Phone Number Date of Purchase

To normalize this data base into 3NF-

What is normalization?

It is the process of simplifying the database or breaking the large table into small multiple tables to reduce data redundancy and to remove certain anomalies sucha as update , insert, delete anomaly.

There are 6 Normal Forms of the normalization, But here we have to do Upto 3rd Normal Form.

1. 1st NORMAL FORM-

In first normal form each attribute of the table should be atomic in value that is it should not have multiple values.

2. 2nd NORMAL FORM-

In second normal form it should follow these two rules-

a- It should be in 1st Normal Form.

b- And all the non-key attributes should be fully functional dependent on the primary key.
It should not have Partial Dependency.

3. 3rd NORM FORM-

In third normal form it should follow these two rules-

a- It should be in 2nd Normal Form.

b- And it can not contain any transitive partial dependency.

Therefore i have divided this data into 3 different tables-

Table 1- CUSTOMER DETAILS TABLE

(This table will hold the customer's personal details and the puchase_ID of the puchased products)

Customer_ID
Customer Name
Customer Address
Phone Number(s) Purchase_ID

Table 2- PURCHASE DETAILS TABLE

(This table will hold the products details that have been purchased by the customer and the product distribution warehouse unique ID and also the date these products were purchased by the customer.)

Purchase_ID
Products Purchased
Distribution Warehouse_ID Date of Purchase

Table 3- DISTRIBUTION WAREHOUSE TABLE

(This table will hold the details of the product distributiuon warehouse)

Distribution Warehouse_ID Distribution Warehouse Distribution Warehouse Address Distribution Warehouse Phone Number

Here in these tables, The Primay key of each table is in bold and the foriegn keys are underlined.

E-R Diagram-

This is the ER diagram of the database for the 3rd Normal Form representing the relations-

1. This Er model has has been converted into 3NF
2. Here each entity and its attributes are in tabular form
3. Data types of each attribute has been mentioned with it
4. The primary key as PK and foriegn key as FK has been mentioned there.

If any doubt, please feel free to ask and comment, i would like to answer them.
Thank you


Related Solutions

Draw an EER model of given scenario We wish to create a database for a company...
Draw an EER model of given scenario We wish to create a database for a company that runs training courses. For this, we must store data about the trainees and the instructors. For each course participant (about 5,000),identified by a code, we want to store her social security number, surname, age, sex, place of birth, employer’s name, address and telephone number, previous employers (and periods employed), the courses attended (there are about 200 courses) and the final assessment for each...
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...
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...
Design a simple database to track people and who they voted for. The database should have...
Design a simple database to track people and who they voted for. The database should have 3 tables: A table of candidates A table of registered voters A table of votes The candidate table should provide a listing of all candidates and information about the candidates. The registered voter table should hold all registered voters and any pertinent information about them The vote table should hold vote records for each candidate made by the voters Requirements: The system should not...
Create a report that lists customers with the total value of their orders from the database....
Create a report that lists customers with the total value of their orders from the database. Each row of the table should list the customer name and the total value of all orders. Rows should be in descending order according to the total. Just list the first 5 customers, those with the highest total orders. This part is more complex and, so, can be approached in many ways. You may decide to use simple queries and put the information together...
A company creates a database for its customers in which each customer is identified by their...
A company creates a database for its customers in which each customer is identified by their phone number. In this discussion, explore whether or not this is a function with your classmates. In your first post, address the following: Assign one variable as the input and the other variable as the output for this scenario. Is this relation a function? Justify your answer using the definition of a function, and explain your reasoning carefully. Do you think this is a...
What are some ways that a company can track accounts receivable to ensure that customers are...
What are some ways that a company can track accounts receivable to ensure that customers are paying on time. What are some consequences of a customer not paying the balance owed on accounts receivable? Please provide three specific consequences.
A loan company wants to design a database to track student loans. Each student attending school...
A loan company wants to design a database to track student loans. Each student attending school is eligible for a loan. A student may have more than one loan. A student may be registered, possibly at different times, in more than one school. Each loan should belong to only one bank. Each bank can approve as many loans as it desires. For each loan, the loan company will track: the student’s SSN, name, address, amount of loan, date of the...
A loan company wants to design a database to track student loans. Each student attending school...
A loan company wants to design a database to track student loans. Each student attending school is eligible for a loan. A student may have more than one loan. A student may be registered, possibly at different times, in more than one school. Each loan should belong to only one bank. Each bank can approve as many loans as it desires. For each loan, the loan company will track: the student’s SSN, name, address, amount of loan, date of the...
Database design is the process of producing a detailed data model of database. This data model...
Database design is the process of producing a detailed data model of database. This data model contains all the needed logical and physical design choices and physical storage parameters needed to generate a design in a data definition language, which can then be used to create a database. (Wikipedia). Using a diagram/chart software, elaborate a database design Requirements: Define your database objective Explain your database's type of table relationship Explain and design your database elements and datatypes (tables, fields, etc,)....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT