Curated · Normal Forms (1NF, 2NF, 3NF, BCNF)

MCQ · 1 mark · Problem DBMS-NORM-0038

Consider the following relational schemas with their non-trivial functional dependencies:Schema I: Registration (rollno, courses)FD: \(\text{rollno} \;\rightarrow\; \text{courses}\)Schema II: Registration (rollno, courseid, email)FDs: \(\{\text{rollno, courseid}\} \;\rightarrow\; \text{email}, \quad \text{email} \;\rightarrow\; \text{rollno}\)Schema III: Registration (rollno, courseid, marks, grade)FDs: \(\{\text{rollno, courseid}\} \;\rightarrow\; \{\text{marks, grade}\}, \quad \text{marks} \;\rightarrow\; \text{grade}\)Schema IV: Registration (rollno, courseid, credit)FDs: \(\{\text{rollno, courseid}\} \;\rightarrow\; \text{credit}, \quad \text{courseid} \;\rightarrow\; \text{credit}\)Which one of the relational schemas above is in 3NF but not in BCNF?
  1. A
    Schema I
  2. B
    Schema II
  3. C
    Schema III
  4. D
    Schema IV

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionLet's evaluate each schema: Schema I: - \(\text{rollno} \rightarrow \text{courses}\) (in BCNF, as \(\text{rollno}\) is a super key) Schema II: - \(\text{rollno, courseid} \rightarrow \text{email}\) (in BCNF, as the left side is a super key) - \(\text{email} \rightarrow \text{rollno}\) (not in BCNF, as \(\text{email}\) is not a super key) Schema III: - \(\text{rollno, courseid} \rightarrow \text{marks, grade}\) (not in BCNF, as neither \(\text{marks}\) nor \(\text{grade}\) is a super key) - \(\text{marks} \rightarrow \text{grade}\)Schema IV: - \(\text{rollno, courseid} \rightarrow \text{credit}\) (not in BCNF, as \(\text{courseid}\) is not a super key) - \(\text{courseid} \rightarrow \text{credit}\)Among these, only Schema II ( \(\text{rollno, courseid, email}\) ) is in 3NF but not in BCNF, as the FD \(\text{email} \rightarrow \text{rollno}\) violates BCNF since \(\text{email}\) is not a super key.

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com