Question

In: Computer Science

How do we know the following relation with the following dependencies is BCNF? course ( course_id...

How do we know the following relation with the following dependencies is BCNF?

course ( course_id , title , dept_name , credits )

Functional Dependencies

course_id → title , dept_name , credits

building , room_number → capacity

course_id , sec_id , semester , year → building , room_number , time_slot_id

Choose what makes the statement BCNF and why:

dept_name is a superkey

course_id, dept_name is a superkey

course_id is a candidate key

course_id is a superkey

Solutions

Expert Solution

The correct answer is option no 4,course_id is a superkey.

Let's explain the answer-

The database Course(courseid,title,dept_name,credits) has its own functional dependencies.

Now What is BCNF(Boyce-Codd Normal Form)?

From the very clear definition 1)A relation has to be in 3NF.2)The superkey will be in the derivative element in the functional dependency.

Now ,for 2NF partial dependency is not allowed.MEANS PRIME ATTRIBUTE TO NON PRIME ATTRIBUTE FUNCTIONAL DEPENDENCY ARE NOT WELCOMED.

for 3NF transitive dependency is not allowed .MEANS NONPRIME ATTRIBUTE TO NONPRIME ATTRIBUTE FUNCTIONAL DEPENDENCY GETS REJECTED.

NOW FOR BCNF,if any superkey stays on the left side of the derivation it's allowed.So,take the easy solution,FROM FUNCTIONAL DEPENDENCY WE JUST NEED TO CHECK IF ALL THE FUNCTIONAL DEPENDENCY HAS SUPERKEY IN THE LEFT SIDE.

now coming to this problem

fd1:Course_id->title,dept_name,credits BCNF IF LEFT IS SUPERKEY,Course_id is Superkey

fd2:

building , room_number → capacity ,NOT IDENTIFIED IN THE DATABASE SO THIS DEPENDENCY GETS REJECTED.

fd3:course_id , sec_id , semester , year → building , room_number , time_slot_id,Here in the left we have Course_id which has to be a superkey and then concatenating more attributes with superkey makes the total left side superkey.

so fd3 also superkey is in the left.

so ,to stay in BCNF left side has to be a superkey and left side we have course_id which has to be a superkey.


Related Solutions

Consider a relation R (ABCDEFGH) with the following functional dependencies: ACD --> EF AG --> A...
Consider a relation R (ABCDEFGH) with the following functional dependencies: ACD --> EF AG --> A B --> CFH D --> C DF --> G F --> C F --> D Find minimal cover and identify all possible candidate keys. In order to receive full credit, please list each step taken and the rules that you applied.
Consider a relation R with five attributes ABCDE. You are given the following dependencies: A à...
Consider a relation R with five attributes ABCDE. You are given the following dependencies: A à B, BC à E, and ED à A. (1) List all candidate keys for R. Please show your steps. (4 points) (2) Is R in 3NF? Please explain your answer. (3 Points) (3) Is R in BCNF? Please explain your answer. (3 Points)
How do we know if we are getting the truth from media? How do consumers of...
How do we know if we are getting the truth from media? How do consumers of media protect ourselves?
For the relation R(A,B,C,D,E) with the following Functional Dependencies: A → B, A → C, BC...
For the relation R(A,B,C,D,E) with the following Functional Dependencies: A → B, A → C, BC → D, AC → E, CE → A, list all non-trivial FDs following from the above.    Generate all possible keys for R. Check whether R is in 3NF. If it is in 3NF, explain the criteria you used. If it is not in 3NF, convert it into 3NF, showing the new relations and their FDs.
Normalization: Answer all 4 questions. You are given the following relation R and some functional dependencies....
Normalization: Answer all 4 questions. You are given the following relation R and some functional dependencies. R(SID, Project, Code, ListOfSupplies, Name, Initials, Abbrev) Project → ListOfSupplies SID → Name Name → Initials Project, Initials → Abbrev SID, Project → Code Code → SID Is R in 1NF? If not, normalize R into a collection of 1NF relations. Is R in 2NF? If not, normalize R (or your collection of 1NF relations) into a collection of 2NF relations. Is R in...
Based on failures in the economy, how do we know if it is a market failure...
Based on failures in the economy, how do we know if it is a market failure or a government failure? How does a market failure or government failure impact someone like me, a college student?
Why do we need carbohydrates and how much do you know about carbohydrates and how they...
Why do we need carbohydrates and how much do you know about carbohydrates and how they contribute to energy in your body.
If all we can observe are things inside the observable universe, how do we know that...
If all we can observe are things inside the observable universe, how do we know that anything even exists outside this boundary? I can see four ways of solving this problem. 1) We wait a while, the observable universe should get 'larger', so we should be able to observe more. I don't think this is practical though, since telescopes have only existed for a hundred years or so, whereas the age of the universe is many degrees larger. Also, galaxies...
do you agree that we oftern do not know why we do what we do? Also...
do you agree that we oftern do not know why we do what we do? Also explain that to what extent our preconception control our interpreatations and memories
How do we know atoms and molecules are in motion? One of the big problems in...
How do we know atoms and molecules are in motion? One of the big problems in chemistry is our dependence upon our five senses (macroscopic observations) to infer what occurs on the atomic and molecular level (microscopic behavior of matter). Give two examples of observations we can make on the macroscopic level that prove to us that atoms and molecules are in motion.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT