Question

In: Computer Science

Assume that you have been given the following attributes: Inv_Num, Prod_Num, Sale_Date, Prod_Desc, Vend_Num, Vend_Name. Num_Sold,...

Assume that you have been given the following attributes:

Inv_Num, Prod_Num, Sale_Date, Prod_Desc, Vend_Num, Vend_Name. Num_Sold, Prod_Price

Assume there are no repeating groups. An invoice can contain multiple products and a product can be sold by only one vendor. Identify all dependencies and covert to 3 NF. First convert the above to 1NF then 2NF and lastly, 3NF. Show all work.

Solutions

Expert Solution

Consider the relation

Product_Sale(Inv_Num, Prod_Num, Sale_Date, Prod_Desc, Vend_Num, Vend_Name. Num_Sold, Prod_Price)

First Normal Form (1NF) :

  • Given relation is in the first normal form because there us no repeating groups
  • This signifies that all columns are atomic in nature

Second Normal Form (2NF) :

  • Above relation need to normalize into 2NF to remove partial dependency
  • This means all non key columns must depends upon primary key columns
  • In second normal form needs to identify new tables like
    • Vendor :This table contains vendor details like Vend_Num, Vend_Name
    • Product :This table contains products details like Prod_Num, Prod_Desc ,Prod_Price
    • Invoice :This table contains invoice details like Inv_Num, Sale_Date

Below are tables in 2NF

1.Table Name :Vendor

Schema :Vendor(Vend_Num, Vend_Name)

FD :Vend_Num==> Vend_Name

2.Table Name :Product

Schema :Product ( Prod_Num, Prod_Desc ,Prod_Price)

FD : Prod_Num==>Prod_Desc ,Prod_Price

3.Table Name :Invoice

Schema :Invoice (Inv_Num, Sale_Date)

FD : Inv_Num==>Sale_Date

Third Normal Form (3NF) :

  • Above tables needs to normalize into 3NF to remove transitive dependency.
  • In Transitive dependency non key columns should depends upon non key columns.

Below are tables in 3NF.

1.Table Name :Vendor

Schema :Vendor(Vend_Num, Vend_Name)

FD :Vend_Num==> Vend_Name

2.Table Name :Product

Schema :Product ( Prod_Num, Prod_Desc ,Prod_Price,Vend_Num)

FD : Prod_Num,Vend_Num==>Prod_Desc ,Prod_Price

3.Table Name :Invoice

Schema :Invoice (Inv_Num, Sale_Date)

FD : Inv_Num==>Sale_Date

4.Table Name :InvoiceDetails

Schema :Invoice (Inv_Num, Prod_Num,Num_Sold)

FD : Inv_Num,Prod_Num==>Num_Sold


Related Solutions

Assume that you have been given the following attributes: Team_ID, Team_Name, Team_Motto, Emp_ID, Emp_Name, Emp_Address, Emp_Skills,...
Assume that you have been given the following attributes: Team_ID, Team_Name, Team_Motto, Emp_ID, Emp_Name, Emp_Address, Emp_Skills, Task_ID, Task_Begin_Date, Task_Completion_Date, Emp_Performance Assume there are no repeating groups. An employee can be in only one team at a time, but a team can have multiple employees. Emp_ID determines the team in which an employee works. Emp_skills is a multi-valued attribute. An employee can be assigned multiple tasks. Emp_Performance depends on the employee and the task to which they are assigned. Identify all...
Black-Scholes Model Assume that you have been given the following information on Purcell Industries' call options:...
Black-Scholes Model Assume that you have been given the following information on Purcell Industries' call options: Current stock price = $13 Strike price of option = $13 Time to maturity of option = 3 months Risk-free rate = 7% Variance of stock return = 0.14 d1 = 0.18708 N(d1) = 0.57420 d2 = 0.00000 N(d2) = 0.50000 According to the Black-Scholes option pricing model, what is the option's value? Do not round intermediate calculations. Round your answer to the nearest...
Assume that you have recently been given the firm, A. Sedeno, as a gift from 1st...
Assume that you have recently been given the firm, A. Sedeno, as a gift from 1st January, 2020. You are required to create a new retail merchandise company. Use the information below to assist you in preparing a proper financial accounting report after the first month of operations. 1. Open all accounts in the appropriate Ledgers. 2. Balance all accounts and extract a Trial Balance. R. Sedeno had the following assets and liabilities on 31st December, 2019. Items                                                  $                      Items                         ...
Assume that you have a Saudi league player database. In this database, you have a table containing players’ attributes
Assume that you have a Saudi league player database. In this database, you have a table containing players’ attributes such as (Name, age, position, etc.) and you decided to add information about players’ agents. Would you represent the agent information as attributes in the player table or would you create an entity set for players’ agents? Justify your answer.
Problem 8-3 Black-Scholes Model Assume that you have been given the following information on Purcell Industries:...
Problem 8-3 Black-Scholes Model Assume that you have been given the following information on Purcell Industries: Current stock price = $16 Strike price of option = $11 Time to maturity of option = 4 months Risk-free rate = 8% Variance of stock return = 0.14 d1 = 1.965949 N(d1) = 0.975348 d2 = 1.749924 N(d2) = 0.959934 According to the Black-Scholes option pricing model, what is the option's value? Round your answer to the nearest cent. Binomial Model The current...
You have been given the job of evaluating the following merger candidate. You have collected the...
You have been given the job of evaluating the following merger candidate. You have collected the following cash flow for the acquisition candidate for the proposed merger (in millions): Year                                                                1                              2                               3                               4                               5__ Cash flows now for canidate 90                            85                               205                            165                            180 Additional cash flows with merger 60                            90                               100                            225                            250 Total cash flows with synergy 150                            175                            305                            390                            430 Risk free rate of return                                                                                                                 3.0% Beta for this project (the company after merging)                                                        ...
You are given the following three stocks and you have been asked to propose a portfolio...
You are given the following three stocks and you have been asked to propose a portfolio for a wealthy client. The client wants either a 2 asset (A-B, B-C, or A-C) or a 3 asset(A-B-C) portfolio. In any case, the portfolios must be equal weighted. Which of the four portfolios do you suggest to the client? Why? Show your work step by step. Stocks Mean Return Std of Return X 1.5 4 Y 4 8 Z 7 1 Correlations X...
You are an employee of University Consultants. Ltd., and have been given the following assignment. You...
You are an employee of University Consultants. Ltd., and have been given the following assignment. You are to present an investment analysis of a new small residential income producing property for sale to a potential investor. The asking price for the property is $1, 250,000; rents are estimated at $200,000 during the first year and are expected to grow at 3 percent per year thereafter. Vacancies and collection losses are expected to be 10 percent of rents. Operating expenses will...
You are given the following three stocks and you have been asked to propose a portfolio...
You are given the following three stocks and you have been asked to propose a portfolio for a wealthy client.  The client wants either a 2 asset (A-B, B-C, or A-C) or a 3 asset(A-B-C) portfolio. In any case, the portfolios must be equal weighted.  Which of the four portfolios do you suggest to the client? Why? Show your work step by step. Stocks Mean Return Std of Return X 1.5 4 Y 4 8 Z 7 1 Correlations X and Y...
You are an employee of University Consultants, Ltd and have been given the following information. You...
You are an employee of University Consultants, Ltd and have been given the following information. You are to present an investment analysis of a new small income-producing property for sale to a potential inventor. The asking price for the property is $8.5 million. You determine that the building was worth $7.225 million and could be depreciated over 39 years (use 1/39 per year). NOIs are estimated to be $901,375 for year 1, $900,681 for year 2, $899,962 for year 3,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT