The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+21 votes

Consider the following functional dependencies in a database.

$$\begin{array}{|l|l|}\hline \text{Date_of_Birth $\to$ Age} & \text{Age $\to$ Eligibility} \\\hline  \text{Name $\to$ Roll_number} & \text{Roll_number $\to$ Name} \\\hline   \text{Course_number $\to$ Course_name} & \text{Course_number $\to$ Instructor} \\\hline  \text{(Roll_number, Course_number) $\to$ Grade} & \text{}  \\\hline \end{array}$$

The relation (Roll_number, Name, Date_of_birth, Age) is

  1. in second normal form but not in third normal form
  2. in third normal form but not in BCNF
  3. in BCNF
  4. in none of the above
asked in Databases by Veteran (52k points)
edited by | 3.2k views

2 Answers

+41 votes
Best answer

There are three FDs that are valid from the above set of FDs for the given relation :

  1. Date_of_Birth $\to$ Age
  2. Name $\to$ Roll_number
  3. Roll_number $\to$ Name

Candidate keys for the above are : (Date_of_Birth, Name) and (Date_of_Birth, Roll_number)

Clearly there is partial dependency here (Date_of_Birth $\to$ Age) and Age is not a prime attribute. So, it is in 1NF only.

Option (D).

answered by Active (4k points)
selected by
There are also given two other fds  i.e course no ,course name and instructor.for the ck all fds should be derived from it
@Neha Singh we need to find dependency btw given relation only which is The relation (Roll_number, Name, Date_of_birth, Age) so all extra dependency other than relation no use

Prateek kumar but there may be other fd that can be indirectly derived from the attribute not present in the table thus it is always advisable to find all the possible fd's by using the closure method and see which are applicable to the given relation .

Why bcnf is not
@Jony Bhatt  When it is not in 2NF then how it can be in bcnf
0 votes
there is partial dependency hence it is 1st normal form
answered by Junior (595 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,535 questions
54,122 answers
71,039 users