Question

In: Computer Science

Let’s consider the following table storing the information about various dealers for various products. And it...

Let’s consider the following table storing the information about various dealers for various products. And it stores the dealer details along with the products we purchase from them and the product count.

Dealer_ID

Dealer_Name

Product_ID

Quantity

D102

Jade Garden

P121

66

D102

Jade Garden

P103

188

D110

Tim Ho Wan

P102

88

D105

Goose Manor

P121

66

D104

Daikiya

P110

288

D104

Daikiya

P102

10

(a) Identify all Functional Dependencies for this relation. (4 points)

(b) List all candidate keys of this relation. (4 points)

(c) Is the relation in 3NF and why? If not, normalize it into 3NF . (5 points)

(d) Is the relation in BCNF and why? If not, normalize it into BCNF . (5 points)

Solutions

Expert Solution

Solution:

(a)

Explanation:

=>Let say Dealer_ID = A, Dealer_Name = B, Product_ID = C, Quantity = D and relation name = R

=>Hence relation = R(A, B, C, D)

Finding functional dependencies:

=>On both the Dealer_ID D102 and D104 it is resulting same Dealer_Name Jade Garden and Daikiya respectively hence we can write A -> B

=>Similary we can also write B -> A, D -> C

=>We can also write AC -> BD, AD -> BC, BC -> AD, BD -> AC

=>Hence set of functional dependencies = {A -> B, B -> A, D -> C, AC -> BD, AD -> BC, BC -> AD, BD -> AC}

(b)

Explanation:

Finding candidate keys:

=>(AC)+ = ABCD

=>(AD)+ = ABCD

=>(BC)+ = ABCD

=>(BD)+ = ABCD

=>Hence candidate keys = {AC, AD, BC, BD}

(c)

Explanation:

=>Relation is in 1 NF because there is no multivalued or complex attribute in the relation R.

=>Relation is also in 2 NF because there is no partial functional dependencies of type X -> Y where X is proper subset of candidate key and Y is non prime attribute.

=>Relation is also in 3 NF because all the functional dependencies of type X -> Y where either X is super key or Y is prime attribute.

(d)

Explanation:

=>Relation is not in BCNF because all the functional dependencies are not of type X -> Y where X is super key.

Decomposition of relation:

=>R1(A, B) with functional dependencies = {A -> B, B -> A}

Candidate keys = {A, B}

=>R2(C, D) with functional dependencies = {D -> C}

Candidate key = {D}

=>Now relations are in BCNF.

I have explained each and every part with the help of statements attached to the answer above.


Related Solutions

Consider a small island country whose only industry is fishing. The following table shows information about...
Consider a small island country whose only industry is fishing. The following table shows information about the small economy in two different years. Complete the table by calculating physical capital per worker as well as labor productivity. Hint: Recall that productivity is defined as the amount of goods and services a worker can produce per hour. In this problem, measure productivity as the quantity of goods per hour of labor. Year Physical Capital Labor Force Physical Capital per Worker Labor...
An economy produces the following products: burgers and coffee. Use the information in the following table...
An economy produces the following products: burgers and coffee. Use the information in the following table to calculate (a) The total cost of the consumption basket consisting of 8 burgers and 15 cups of coffee in 2010, 2018 and 2019 (b) Consumer Price Index for years 2018 and 2019 that measures the cost of the consumption basket relative to the base year. (c) Inflation rate for 2019. Product Quantity Base Year Price (2010) Price (2018) Price (2019) Burgers 8 $2.00...
Consider the information provided in the following table. Using the additional information provided at the bottom,...
Consider the information provided in the following table. Using the additional information provided at the bottom, calculate the value of the firm using FCFF method.                                                           [15] Year 2019 2020 2021 2022 2023 2024 2025 Total Assets 10000 Fixed Assets 8000 Current assets 2000 Debt 4000 Equity 5000 Current liabilities 1000 Sales 15000 Operating expenses 12000 EBIT 3000 Int 400 PBT 2600 Tax(25%) 650 PAT 1950 For first five years, growth rate is sales in 5% and from sixth year...
Consider the table of data collected for the reaction A → Products.
Consider the table of data collected for the reaction A → Products. Determine the magnitude (value) of the reaction rate constant by graphing the data appropriately. 
The following table shows the number of cars sold last month by six dealers at Centreville...
The following table shows the number of cars sold last month by six dealers at Centreville Nissan dealership and their number of years of sales experience. Years of Experience Sales 1 7 2 9 2 9 4 8 5 14 8 14 A: Management would like to use simple regression analysis to estimate monthly car sales using the number of years of sales experience. Estimate and interpret the following: a) Regression Equation, b) Slope, c) y-intercept. B: what happens when...
Given the following information about a stock's return in the various states of the economy, calculate...
Given the following information about a stock's return in the various states of the economy, calculate the standard deviation of its return. USE EXCEL AND SHOW FORMULAS THAT WERE USED. Enter answer in percents State of economy Probability Stock return Recession 0.17 -0.26 Normal 0.34 0.08 Boom -- 0.18
A Company manufactures and sells two products: A and B. The following table shows the information...
A Company manufactures and sells two products: A and B. The following table shows the information relating to these products: A B Total Selling price per unit $20 $40 Variable cost per unit $10 $20 Total Fixed costs $80,000 Required: If Sales mix is 2 :3 for A and B respectively, calculate the breakeven point in units and in dollars for each of the two products.
Consider a hypothetical open economy. The following table presents data on the relationship between various real...
Consider a hypothetical open economy. The following table presents data on the relationship between various real interest rates and national saving, domestic investment, and net capital outflow in this economy, where the currency is the U.S. dollar. Assume that the economy is currently experiencing a balanced government budget.Real Interest RateNational SavingDomestic InvestmentNet Capital Outflow(Percent)(Billions of dollars)(Billions of dollars)(Billions of dollars)76030-1065540-555050044560534070102358015Given the information in the preceding table, use the blue points (circle symbol) to plot the demand for loanable funds. Next,...
Consider the following payoff table giving profits for various situations: States of Nature Alternatives A B...
Consider the following payoff table giving profits for various situations: States of Nature Alternatives A B C ALT 1 120 140 120 ALT 2 200 100 50 ALT 3 100 120 180 Do nothing 0 0 0 probability .3 .5. .2 Solve the following problems based on above payoff table 1. If a person were to use the expected monetary value criterion (EMV), what decision would be made? A) Alternative 1 B) Alternative 2 C) Alternative 3 D) Do Nothing...
Complete the following information about the organization and products and/or services you will focus on as...
Complete the following information about the organization and products and/or services you will focus on as you develop a complete marketing plan throughout the course. You may need to do research to get answers to the questions below. Be sure the organization and offer you select will 1) remain interesting to you for the duration of the course, and 2) have sufficient information available for you to conduct research and make informed recommendations in your marketing plan. Company Profile Company...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT