edited by
30,043 views
65 65 votes

The relation scheme $\text{Student Performance (name, courseNo, rollNo, grade)}$ has the following functional dependencies:

  • name, courseNo, $\rightarrow$ grade
  • rollNo, courseNo $\rightarrow$ grade
  • name $\rightarrow$ rollNo
  • rollNo $\rightarrow$ name

The highest normal form of this relation scheme is

  1. $\text{2NF}$
  2. $\text{3NF}$
  3. $\text{BCNF}$
  4. $\text{4NF}$

7 Answers

Best answer
70 70 votes

Here candidate keys are,

  • name, courseNo
  • rollNo, courseNo

That makes name, rollNo, and courseNo prime attributes (part of some candidate key)

Functional dependencies $3$ and $4$ are not partial $\text{FD}$s.

If a relation schema is not in $\text{2NF},$ then for some $\textsf{FD}\; x\rightarrow y,  x$ should be a proper subset of some candidate key and $y$ should be a non-prime attribute.

$\textsf{FD}$s $3$ and $4$ are not violating $\text{2NF}$, because the RHS are prime attributes.

For a relation to be in $\textsf{3NF}$, for every $\text{FD}, x\rightarrow y,$ $x$ should be a super key or $y$ is a prime attribute. For $\textsf{FD}$s $3$ and $4,$ LHS are not super keys, but RHS are prime attributes. So, they are not violating $\textsf{3NF}.$

For a relation to be in $\textsf{BCNF}$, for every $\text{FD},$ $x \rightarrow y ,  x$ should be super key. This is clearly violated for $\textsf{FD}$s $3$ and $4$ and so the relation scheme is not in $\textsf{BCNF}$ and hence not in $\textsf{4NF}$ also.

Correct option: B.

edited by
19 19 votes
If we proceed with given FDs then either Name,courseno or RollNo,courseNo becomes the candidate key. So no non-prime attributes are partially dependent on any Key attributes. Hence 2NF test passed.

Again for 3rd and 4th FD, Name,roll are part of the key and for first 2 FDs, determinants are candidate key itself. So 3NF test  passed but not BCNF. Hence 3NF answer. b.
16 16 votes

Candidate key1-name,course no. 

CandCandikey 2-roll no., course no. 

Checking for bcnf:

Name->roll no

Name not c.Key so not in bcnf

Checking for 3nf:

In first two dependencies  both are cand keys 3 nf satisfied. 

In next two dependencies, no non prime attribute so condition  satishfied for 2 nf as well as 3 nf. 

3 3 votes
there are two candidate keys

1(name,course_no)

2(roll_no,course_no)

when i consider 1(name,course_no) as key roll_no becomes non-prime attribute and fd name->roll_no. violets 2nf.and same situation when 2 is considered as key.

or is it so that all the attributes which are part of single or different composite candidate key are considered as prime attribute in all the cases.

arjun sir plz clear my doubt.
1 1 vote

BEST ANSWER

FD GIVEN

N,C---> G 

R,C----> G

N---->R

R---->N

Relation Schema Given (N, C, R, G)

Candidate keys = NC, RC

Check BCNF

Proper subset of One CK ----->  Proper subset of another  CK    (Voilation condition) 

N,C---> G   (BCNF)

R,C----> G  (BCNF)

N---->R  (Volation of BCNF)

R---->N  (Volation of BCNF)

Check 3NF

Non Key Attribute  ----->  Non Key Attribute     (Voilation condition) 

N,C---> G   (3NF)

R,C----> G  (3NF)

N---->R  (3NF)

R---->N  (3NF)

So Highest Normal form is 3NF

0 0 votes
1 st 2 FD's satisfy BCNF ... other 2 is in 3 NF but not in BCNF
So the highest normal form of the schema is 3 NF
Answer:
Position:
Show:

Related questions

56 56 votes
4 answers 4 answers
17.8k
17.8k views
Kathleen asked Sep 18, 2014
17,839 views
The employee information in a company is stored in the relationEmployee (name, sex, salary, deptName)Consider the following SQL querySelect deptName From Employee Where s...
39 39 votes
4 answers 4 answers
17.7k
17.7k views
Kathleen asked Sep 18, 2014
17,703 views
The order of an internal node in a $B+$ tree index is the maximum number of children it can have. Suppose that a child pointer takes $6$ bytes, the search field value tak...
93 93 votes
9 answers 9 answers
28.5k
28.5k views
Kathleen asked Sep 18, 2014
28,533 views
Consider the relation Student (name, sex, marks), where the primary key is shown underlined, pertaining to students in a class that has at least one boy and one girl. Wha...
91 91 votes
13 answers 13 answers
34.2k
34.2k views
go_editor asked Apr 24, 2016
34,213 views
Consider three IP networks $A, B$ and $C$. Host $H_A$ in network $A$ sends messages each containing $180$ $bytes$ of application data to a host $H_C$ in network $C$. The ...