Question

In: Computer Science

The following table stores details on employees and the projects they have worked on and the...

  1. The following table stores details on employees and the projects they have worked on and the hours they spent on the project each week:                                      [15 Marks]

WORKLOAD

EmpID

EmpName

ProjID

ProjName

HoursPerWeek

E01

Smith

P02

Database

10

E02

Smith

P01

Web Portal

5

E03

Robinson

P02

Database

20

  1. Explain why the above table is not in 2nd normal form. Then normalise it to 2nd normal form.
  2. Once the table is in 2nd normal form, test if the result is in 3rd normal form and explain why you think it is or is not in 3NF.

Solutions

Expert Solution

Given table workload is in the first normal form.This table needs to normalize into second normal form.

Second Normal Form (2NF) :

  • Table workload needs to normalize into second normal form to remove partial dependancy because some of the columns like
    • empname is depends upon column empID
    • likewise column projName is depends upon projID

hence below are tables in 2NF.

1.Table Name :Employee

Description :This table stores employee details like empID and empName

Schema :Employee(EmpID , EmpName)

FD :EmpID ==>EmpName

Below is the table data

EmpID EmpName
E01 Smith
E02 Smith
E03 Robinson

2.Table Name :Project

Description :This table stores project details like projID and projName

Schema :Project(projID , projName)

FD :projID ==>projName

Below is the table data

projID projName
P02 Database
P01 Web Portal

Third Normal Form (3NF) :

  • Above table needs to normalize into 3NF to remove transitive dependancy.

Below are tables in 3NF.

1.Table Name :Employee

Description :This table stores employee details like empID and empName

Schema :Employee(EmpID , EmpName)

FD :EmpID ==>EmpName

Below is the table data

EmpID EmpName
E01 Smith
E02 Smith
E03 Robinson

2.Table Name :Project

Description :This table stores project details like projID and projName

Schema :Project(projID , projName)

FD :projID ==>projName

Below is the table data

projID projName
P02 Database
P01 Web Portal

3.Table Name :WORKLOAD

Description :This table stores project details like projID and employee working on that project like empID along with HoursPerWeek

Schema :WORKLOAD(EmpID,projID , HoursPerWeek)

FD :EmpID,projID ==>HoursPerWeek

Below is the table data

EmpID projID HoursPerWeek
E01 P02 10
E02 P01 5
E03 P02 20

Related Solutions

The amounts of time employees of a telecommunications company have worked for the company are normally...
The amounts of time employees of a telecommunications company have worked for the company are normally distributed with a mean of 5.7 years and a standard deviation of 2.1 years. Random samples of size 15 are drawn from the population and the mean of each sample is determined. Use the Central Limit Theorem to find the mean and standard error of the mean of the indicated sampling distribution. The amounts of time employees of a telecommunications company have worked for...
The following data shows the hours worked by employees at a McDonalds and the number of...
The following data shows the hours worked by employees at a McDonalds and the number of dollars that they earned that day. Hours worked Pay dollars 8 68 7 59.5 8 68 5 42.5 10 85 8.5 72.25 7.5 63.75 9 76.5 Average: 7.875 66.9375 Standard Deviation 1.482035 12.5973 Correlation 1 a)Draw a scatterplot that represents this data. Draw an estimate for the line of least fit on the scatterplot as well. b) Use technology to find the least squares...
Q#1 The amounts of time employees of a telecommunications company have worked for the company are...
Q#1 The amounts of time employees of a telecommunications company have worked for the company are normally distributed with a mean of 5.10 years and a standard deviation of 2.00 years. Random samples of size 12 are drawn from the population and the mean of each sample is determined. Round the answers to the nearest hundredth. Q#2 A coffee machine dispenses normally distributed amounts of coffee with a mean of 12 ounces and a standard deviation of 0.2 ounce. If...
The employees at Table Manufacturing perform the following tasks as indicated in Table A and Table...
The employees at Table Manufacturing perform the following tasks as indicated in Table A and Table B. Employee A Roles and Responsibilities Employee B Roles and Responsibilities Reports to CFO Reports to CFO Raises capital through issuing stocks and bonds General financial accounting General managerial accounting Tax preparation Which of the following is the role of Employee A and Employee​ B?
Use this table, which details how Pay Pal's employees commute to work, to answer all parts...
Use this table, which details how Pay Pal's employees commute to work, to answer all parts of this question. Car Bus Train Total Management 14 21 11 46 Labor 51 107 165 323 Total 65 128 176 369 Part 1 of 2: Give the marginal distribution of mode of transportation (to the nearest tenth of a percent) . Be sure to label each with the percent sign! Car = Bus = Train = Give the conditional distribution of mode of...
Suppose you want to estimate the average number of years employees have worked at your company...
Suppose you want to estimate the average number of years employees have worked at your company so far. You take a random sample of 100 workers and you find the average number of years they have worked at your company so far is 10 years. (Assume the standard deviation for number of years worked is known to be 2 years.) Let X be the number of years an employee has worked at this company. Assuming this company has been around...
A random sample of 100 postal employees found that the average time these employees had worked...
A random sample of 100 postal employees found that the average time these employees had worked for the postal service was x(bar) = 7 years, with standard deviation s = 2 years. Assume the distribution of the time the population of employees has worked for the postal service is approximately normal, with mean μ. Are these data evidence that μ has changed from the value of 7.5 years of 20 years ago? Carry a test of significance at 1% and...
Write and run SQL statements to complete the following tasks Show the details of the employees...
Write and run SQL statements to complete the following tasks Show the details of the employees who are located in area code 901 and their manager employee number is 108. Show the details of the employees who are also mangers. Show the details of the customers whose balance is greater than 220 but less than 500. Show the details of the customers whose balance is highest. Show customer 10014’s name and the product’s descriptions which he/she purchased and the number...
choosing between two projects. The cash flows for the projects are given in the following table​...
choosing between two projects. The cash flows for the projects are given in the following table​ ($ million): Project Year 0 Year 1 Year 2 Year 3 Year 4 A negative $ 48 −$48 $ 24 $24 $ 21 $21 $ 19 $19 $ 15 $15 B negative $ 102 −$102 $ 20 $20 $ 41 $41 $ 48 $48 $ 58 $58 a. What are the IRRs of the two​ projects? b. If your discount rate is 4.7 %...
the following table shows the distribution of hours worked each week on average for a sample...
the following table shows the distribution of hours worked each week on average for a sample of 100 community college students. hours per week number of students 0-9 24 10-19. 14 20-29. 39 30-39. 18 40-49. 5 1) what is mean? round 3 decimals 2) standard deviation of sample? round 3 decimals 3) what is the mid point of the class 20-29? 4) do a histograms of the data ; shape of distribution? 5) what is quartile 75 of distribution?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT