Consider the following functional dependencies in a database. [code] Date_of_Birth->Age Age->Eligibility Name->Roll_number

Thành Đạt

New member
Consider the following functional dependencies in a database.
Code:
   Date_of_Birth->Age            Age->Eligibility 
   Name->Roll_number             Roll_number->Name 
   Course_number->Course_name    Course_number->Instructor 
   (Roll_number, Course_number)->Grade
The relation (Roll_number, Name, Date_of_birth, Age) is
A. In second normal form but not in third normal form
B. In third normal form but not in BCNF
C. In BCNF
D. None of the mentioned
 
Answer: d
Explanation: For the given relation only some of the above FDs are applicable. The applicable FDs are given below:
Date_of_Birth->Age
Name->Roll_number
Roll_number->Name
Finding the closure set of attributes we get the candidate keys:(Roll_number,Date_of_Birth), and (Name,Date_of_Birth) .
On selecting any one of the candidate key we can see that the FD Date_of_Birth->Age is a partial dependency. Hence the relation is in 1NF.
 

Tìm kiếm

Back
Top