GATE CS 2018 · Question 52 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed. The underlined attributes are the respective primary keys.
Schema I: Registration(rollno, courses)
Field 'courses' is a set-valued attribute containing the set of courses a student has registered for.
Non-trivial functional dependency:
rollno → courses
Schema II: Registration(rollno, courseid, email)
Non-trivial functional dependencies:
rollno, courseid → emailemail → rollno
Schema III: Registration(rollno, courseid, marks, grade)
Non-trivial functional dependencies:
rollno, courseid → marks, grademarks → grade
Schema IV: Registration(rollno, courseid, credit)
Non-trivial functional dependencies:
rollno, courseid → creditcourseid → 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
Answer

Answer (B)

Answer from the official GATE CS 2018 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes