Question
a. picture
b. Using the tables created on the preview question that should be on BCNF create a SQL statement to denormalize it.
Convert the below table up to BCNE Salesinformation LastHarnest Name Phone InvoldeDate Invoice temPrice Tax Total LastName Fi
0 0
Add a comment Improve this question Transcribed image text
Answer #1

BOYCE-CODD NORMAL FORM(BCNF):

It is an extended version of 3NF. It satisfies the #NF and every functional dependency X->Y,X should be the superkey of the table.

NORMALIZATION:

it is to organize the data in the table to avoid data redundancy.

1NF:

it should have the atomic values for each column and row.

2NF:

it should satisfy the 1NF and no non-prime attribute is dependent on the proper subset of any candidate key of table.

3NF:

it has to satisfy the 3NF and transitive functional dependency should be removed.

TO NORMALIZE THE TABLE :

we have to break the table.

here the candidate key is:

{firstname}

functional dependency:

firstname->lastname,phone,invoice item,invoice date

price->tax,total

>>CREATE TABLE PRICE_INFO(TAX(NUM),TOTAL(NUM));

>>CREATE TABLE FIRSTNAME(LASTNAME(VARCHAR),PHONE(NUM),INVOICE ITEM(VARCHAR),INVOICE DATE(VARCHAR));

for the first table:

candidate key:price

for the second table:

candiadate key:Firstname

>>SELECT * FROM PRICE_INFO JOIN FIRSTNAME;

from the use of above key we can denormalize the table.

Add a comment
Know the answer?
Add Answer to:
a. picture b. Using the tables created on the preview question that should be on BCNF...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For this option, you will use the Sales and Purchased Items tables below. You are to...

    For this option, you will use the Sales and Purchased Items tables below. You are to develop CREATE TABLE statements for both tables and analyze the two tables for redundancies in the dataset. Finally, you should explain why these two tables are not candidates for a relational model. Sales Table LastName FirstName Phone InvoiceDate InvoiceItem Price Tax Total Shire Robert 206-524-2422 12/14/2017 Antique Desk 3000.00 249.00 3249.00 Shire Robert 206-524-2422 12/14/2017 Antique Desk Chair 500.00 41.50 541.50 Goodyear Katherine 206-524-3544...

  • THE QUEEN ANNE CURIOSITY SHOP PROJECT QUESTIONS Figure 2-36 shows typical sales data for the Queen...

    THE QUEEN ANNE CURIOSITY SHOP PROJECT QUESTIONS Figure 2-36 shows typical sales data for the Queen Anne Curiosity Shop, and Figure 2.37 shows typical purchase data. A. Using these data, state assumptions about functional dependencies among the columns of data. Justify your assumptions on the basis of these sample data and also on the basis of what you know about retail sales. FIGURE 2-36 Sample Sales Data for the Queen Anne Curiosity Shop LastName FirstName Phone InvoiceDate Shire Robert 206-524-2433...

  • You have been assigned to a new development team. A client is requesting a relational database sy...

    You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. You received an email from the client with the list shown below. Currently, this list tracks their daily business. To prepare for the meeting with the client, you develop a first draft prototype of a relational database. In your one page MS Word pdf report include the following:...

  • You have been assigned to a new development team. A client is requesting a relational database sy...

    You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. You received an email from the client with the list shown below. Currently, this list tracks their daily business. To prepare for the meeting with the client, you develop a first draft prototype of a relational database. In your one page MS Word pdf report include the following:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT