Question

In: Computer Science

What is the multivalue, multicolumn problem? What is a multivalued dependency, and how is it resolved...

What is the multivalue, multicolumn problem? What is a multivalued dependency, and how is it resolved by 4NF? To answer these questions, alter exercise 2.40 to allow students to have multiple majors. In this case, the relational structure is: STUDENT (StudentNumber, StudentName, SiblingName, Major) A. Define and discuss the multivalue, multicolumn problem. Define and discuss a multivalued dependency. B. Show an example of this relation for two students, one of whom has three siblings and the other of whom has one sibling. Assume that each student has a single major. C. Show the data changes necessary to add a second major for only the first student. D. Based on your answer to part C, show the data changes necessary to add a second major for the second student. E. Explain the differences in your answers to parts C and D. Comment on the desirability of this situation. F. Define and discuss 4NF, and how 4NF can be used to allow a set of wellformed relations. . Divide this relation into a set of well-formed

Solutions

Expert Solution

A:

Multi value , multi column problem : This problem is happens when database table is used multiple columns to store values of an attribute.

example: STUDENT(StudentNumber, StudentName, SiblingName1,SibilingName2,SibilingName3, Major)

in above schema siblingName is an attribute and it has multiple values and those values are placed in different columns ,this situation leads to multivalue ,multicolumn problem

this is a problem beacause:

  1. if students have more than three siblings then schema is not supports to insert all sibling names
  2. accessing data with this type of tables using query is difficult   

Multivalued dependency :

if table contains three columns like p,l,n and l,n are independant on each other and both are dependent on p then multivalued dependency occurs

example:STUDENT(StudentNumber, StudentName, SiblingName, course)

in above table StudentNumber is decides both siblingname and course and course is independent to siblingname

studentNumber->->SiblingName

StudentNumber->->course

B)

Student Number Studentname Siblingname Major
101 Harry Sony Finance
101 Harry Stephen Finance
101 Harry Karl Finance
102 Measly Maximus Accounting
102 Measly Jupiter Accounting

C) candidate keys in above relation:

Candidatekeys:(StudentNumber,StudentName)

above student name is taken as not unique value

D)functional dependencies:

here studentNumber is defines studentname and major of student ,

1)StudentNumber->(StudentName,Major)

and here sibling name+ studentNumber can define studentName and major

2)(StudentNumber,SiblingName)->(StudentName,Major)

E)reason of not meet relational criteria :

parts of primary key like studentNumber is defines the StudentName and Major

according to relational criteria it's not allowed to functional dependency with part of primary composite key

F)4th normal form:

table to be in 4NF it should be satisfy 1NF ,2NF,3NF and boyce_codd NF

and there should not contain multivalued dependencies more than one

G) dividing table:

break student table into 2 tables

1)Student(StudentNumber,StudentName,Major)

functional dependencies: StudentNumber->(StudentName,Major)

  candidate key : StudentNumber

normalization is made here in the way every attribute is dependent on candidate key

2)Student_Sibling(StudentNumber ,SiblingName)

functional Dependency : StudentNumber->SiblingName

candidate key: StudentNumber

normalization is made here in the way every attribute is dependent on candidate key

Note: pl


Related Solutions

How can asymmetric information problem be resolved in a competitive market?
How can asymmetric information problem be resolved in a competitive market?
What are some of the main elements of dependency theory? What was the dependency theory of...
What are some of the main elements of dependency theory? What was the dependency theory of economic development a response to? What are some examples of countries that adopted the approach recommended by dependency theory?
Discuss the origins of Dependency Theory. How is dependency theory different from modernization theory? How is...
Discuss the origins of Dependency Theory. How is dependency theory different from modernization theory? How is it similar? Why is dependency theory considered useful for analyzing global stratification? How can nations break free of the cycle of dependence? What types of policies and strategies are necessary? Describe dependence as an economic phenomenon? What constitutes a dependent economic relationship between nations?
1. What is dependency theory and world system theory? Is dependency theory rooted with which of...
1. What is dependency theory and world system theory? Is dependency theory rooted with which of the following theories? - conflict theory - structural functionalist theory 2. Give examples of core countries, periphery countries, and semi-periphery countries
how do you evaluate this dependency on technology?
how do you evaluate this dependency on technology?
What is the definition of Co-dependency/addiction and describe how the characteristics of someone who is codependent...
What is the definition of Co-dependency/addiction and describe how the characteristics of someone who is codependent are similar to one with addictive thinking patterns? How does control, rescuing, and detaching play a role in overcoming codepency?
The problem to be resolved: Baltic Supplies Unadjusted Trial Balance as at December 31st, 2018 is...
The problem to be resolved: Baltic Supplies Unadjusted Trial Balance as at December 31st, 2018 is as follows: Accounts Debit Credit Cash 620000 Accounts Receivable 410000 Merchandise Inventory 480000 Store Supplies 144800 Prepaid Insurance Expense 840000 Building and Equipment 2000000 Accumulated Depreciation- Building and Equipment 976000 Accounts Payable 680000 Travelling Expense Payable Unearned Sales Revenue 450000 Note payable Long term 213800 Baltic Capital 1700000 Baltic Withdrawal 35000 Sales Revenue Earned 2550500 Sales Discount 45100 Sales returns and allowances 62500 Cost...
The problem to be resolved: Baltic Supplies Unadjusted Trial Balance as at December 31st, 2018 is...
The problem to be resolved: Baltic Supplies Unadjusted Trial Balance as at December 31st, 2018 is as follows: Account Name Debit Credit Cash 620,000 Accounts Receivable 410,000 Merchandise Inventory 480,000 Store supplies 144,800 Prepaid Insurance expense 840,000 Building and equipment 2,000,000 Accumulated depreciation-Building and equipment 976,000   Accounts Payable 680,000 Traveling expense payable -    unearned sales revenue    450,000    Note payable-Long term 213,800 Baltic capital 1,700,000 Baltic withdrawal 35,000    Sales revenue earned 2,550,500 sales discount 45,100 Sales returns...
Issue Identification (5%): Identification of the problem/issue that must be resolved or decision that must be...
Issue Identification (5%): Identification of the problem/issue that must be resolved or decision that must be made. Phrase the problem/cause in the most succinct way possible. Think about: Differentiating the immediate from the basic problem The implications of the problem(s) Identifying the root cause of the problem(s) Determining the decision facing the key person(s)? Identification of Key Success Factors (10%): Identify the company-specific factors in point form that are absolutely critical to the success of the organization. These are the...
given an example of a functional dependency. write the functional dependency in the form a-->b where...
given an example of a functional dependency. write the functional dependency in the form a-->b where attribute a funcitonally determines attribute b now write an argument concvincing us that attribute a functionally determines attribute b.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT