Question

In: Computer Science

Normalize the following table into 1NF, 2NF and 3NF. Salesperson name Sales area Customer Number Customer...

Normalize the following table into 1NF, 2NF and 3NF.

Salesperson name

Sales area

Customer Number

Customer Name

Warehouse Number

Warehouse Location

Sales Amount

76458

Hariharan

East

17658

Asani

3

Govandi

13545

17645

Madhuram

6

Vasai

10600

17623

Sumit

6

Vasai

9700

76567

Dheerendra

North

18190

Dhanram

4

Thane

11560

18173

Toshi

4

Thane

2590

18150

Ganesh

1

Kalyan

8090

Solutions

Expert Solution

Three Steps of Normalization

Step 1: Flatten the relation, i.e., get rid of composite
        attributes and multi-valued attributes --> 1NF

Step 2: Remove partial key dependencies --> 2NF

Step 3: Remove nonkey dependencies --> 3NF

__________________________________________________________________

           Step 1: Flatten the relation --> 1NF
To convert to first-normal form is easy, simply combine each row in
the non-simple column with the items in the other columns to make
a row in the 1NF table:
SalesPerson No. SalesPerson- NAME S-Area Customer No. Customer Name WareHouse No. Warehose Location Sales Amount
76458 Hariharan East 17658 Asani 3 Govandi 13545
17645 Madhuram
17623 Sumit
76567 Dheerendra North 18190 Dhanram 4 Thane 11560
18173 Toshi
18150 Ganesh

___________________________________________________________________________________

                    Step 2: Remove partial key dependencies --> 2NF

The key of the previous table:
  Salesperson-No, Customer-No

Salesperson-No --> Salesperson-Name
Salesperson-No --> S-Area
So split the SALES-REPORT table into two tables

SALESPERSON (Salesperson-No, Salesperson-name, Sales-area), and

SALESPERSON-CUSTOMER (Salesperson-No, Customer-No, Customer-name,  Warehouse-No, Warehouse-loc, Sales-amount)

SALESPERSON table
Salesperson-No   Salesperson-name   Sales-area
------------------------------------------
76458              Hariharan        East
76567              Dheerendra       North
etc.
------------------------------------------- 

SALESPERSON-CUSTOMER table
Sp-No         C-No        C-Name        W-No  Warehouse-loc  Sales
76458 17658 Asani 3 Govandi 13545
76567 18190 Dhanram 4 Thane 11560

__________________________________________________________________________________________

            Step 3: Remove non-key dependencies --> 3NF
So, to convert it to 3NF form split the table into 4 3NF relations:
SALES-REPORT

(Salesperson-No, Salesperson-Name, Sales-Area, 
(Customer-No, Customer-Name, Warehouse-No, Warehouse-location, Sales)*)

SALESPERSON
(Salesperson-No, Salesperson-name, Sales-area)

SALES
(Salesperson-number, Customer-number, Sales-amount)

CUSTOMER
(Customer-number, Customer-name, Warehouse-number)

___________________________________________________________________________________

*Please Check the Table provided by you . Values of Sales areea , customer number and customer name are incorrect and not upto the data type. Give the correct table and comment for any clarification needed.


Related Solutions

Can a table that is already in 1NF be in 2NF and 3NF without making any...
Can a table that is already in 1NF be in 2NF and 3NF without making any changes? Explain and give one specific example of such table.
For this question, normalize the table to 3NF and draw the relational schema showing cardinalities. UCLA...
For this question, normalize the table to 3NF and draw the relational schema showing cardinalities. UCLA just purchased several servers that are to be used for enterprise resource planning (ERP). The individual servers were purchased from different suppliers and these servers are running different software applications. UCLA also trained several of its staff to use these servers and each trained staff has an authentication code that allows the staff to use a specific software application on a specific server for...
TABLE C6-2: Customer Satisfaction Customer Number Customer Name Satisfaction Level 1 Anderson Very high 2 Angero...
TABLE C6-2: Customer Satisfaction Customer Number Customer Name Satisfaction Level 1 Anderson Very high 2 Angero high 3 Ball medium 4 Bobak low 5 Chontos high 6 Detley very low 7 Hetfield very high 8 Iruja medium 9 Jamesson high 10 Kemp medium 11 Lehmann high 12 Lee high 13 Lewins low 14 Luo very high 15 Madras very high 16 Morris low 17 Mulder medium 18 Ngozichi low 19 Nickens very high 20 Poteau very high 21 Sakomoto medium...
In Chapter 8, you created a Salesperson class with fields for an ID number and sales...
In Chapter 8, you created a Salesperson class with fields for an ID number and sales values. Now, create an application that allows a user to enter values for an array of seven Salesperson objects. Offer the user the choice of displaying the objects in order by either (I)D number or (S)ales value. ----------------------- Salesperson.java public class Salesperson {    private int id;    private double sales;    Salesperson(int idNum, double amt)    {       id = idNum;       sales = amt;    }    public int getId()...
The following table shows the number of customer complaints against airlines operating in a country during...
The following table shows the number of customer complaints against airlines operating in a country during the given year. Year 2002 2004 2006 2008 2010 Number of complaints 9472 7448 8313 10,640 16,494 Use interpolation to estimate the number of complaints in 2005. (Round your answer to the nearest whole number.) The interpolated value for 2005 is _______ complaints.
Consider following table - Convert it to 3NF StdSSN StdCity StdClass OfferNo OffTerm OffYear EnrGrade CourseNo...
Consider following table - Convert it to 3NF StdSSN StdCity StdClass OfferNo OffTerm OffYear EnrGrade CourseNo CrsDesc S1 SEATTLE JUN O1 FALL 2006 3.5 C1 DB S1 SEATTLE JUN O2 FALL 2006 3.3 C2 VB S2 BOTHELL JUN O3 SPRING 2007 3.1 C3 OO S2 BOTHELL JUN O2 FALL 2006 3.4 C2 VB
A sales manager collected data on annual sales for new customer accounts and the number of...
A sales manager collected data on annual sales for new customer accounts and the number of years of experience for a sample of 10 salespersons. In the Microsoft Excel Online file below you will find a sample of data on years of experience of the salesperson and annual sales. Conduct a regression analysis to explore the relationship between these two variables and then answer the following questions. Salesperson Years of Experience Annual Sales ($1000s) 1 3 79 2 4 92...
Question: Confirmation number Customer Name Recorded balance $ confirmed by customer 1 Representative Corporation $5,000 Confirmation...
Question: Confirmation number Customer Name Recorded balance $ confirmed by customer 1 Representative Corporation $5,000 Confirmation not recieved 2 Illustration LLC $8,000 $8,000 3 Selection Partnership $10,000 $9,800 4 Specimen Inc. (a related party) $2,000,000 $1,950,000 Q4-ii. On the basis of the accounts receivable confirmation results received (as presented above), what are the conclusions for each of the sample items selected? Confirmation Number Evaluation of Results: (A)Fail/Exception; (B)Pass/No Exception; or (C) Cannot be Determined [Put only 1 letter below] 1...
Create a Pivot Table to compile the following information: 1. The total revenue for each salesperson...
Create a Pivot Table to compile the following information: 1. The total revenue for each salesperson 2. For each salesperson, the total revenue by product 3. Total revenue generated by each salesperson broken down by location Please provide excel formulas and solutions https://drive.google.com/open?id=16kL_VoQlIsOCaioggkjnGBFR_GvCrSGM
Following table shows the monthly sales of cars at a dealership: Month Number of cars Sold...
Following table shows the monthly sales of cars at a dealership: Month Number of cars Sold 1 79 2 79 3 86 4 93 5 101 6 107 7 102 8 What is the Trend equation for the above data? What is the expected sales for the 8th month based on the Trend method? How much error is there in this forecasting method using MAD?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT