CS FundamentalsHardGATE CS · Product-company placement

A clinic stores Booking(patient, specialty, doctor). Each doctor has exactly one specialty, and each patient sees exactly one doctor per specialty. Which statement is correct?

  1. A. Booking is in BCNF because (patient, specialty) is a key
  2. B. Booking is in 3NF but not BCNF, and every BCNF decomposition loses the rule (patient, specialty) → doctor
  3. C. Booking is not in 3NF because doctor → specialty is transitive
  4. D. Decomposing into (doctor, specialty) and (patient, doctor) is lossy

Correct answer: B. Booking is in 3NF but not BCNF, and every BCNF decomposition loses the rule (patient, specialty) → doctor

Keys are (patient, specialty) and (patient, doctor). doctor → specialty breaks BCNF but specialty is prime, so 3NF holds. The BCNF split (doctor, specialty), (patient, doctor) is lossless (doctor is a key of the first) but cannot check (patient, specialty) → doctor locally.

More DBMS and SQL questions

Exams that ask this topic