CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
R(A, B, C, D) has functional dependencies D → AB, A → BC. What is the highest normal form R satisfies?
- A. 3NF but not BCNF
- B. 2NF but not 3NF
- C. BCNF
- D. 1NF but not 2NF
Correct answer: B. 2NF but not 3NF
Candidate keys: {D}. No partial dependency exists, but A → B has a non-superkey left side and a non-prime right side (prime attributes: D), so 3NF fails.
More DBMS and SQL questions
- A B+ tree index uses 512-byte blocks, 8-byte search keys, 4-byte block pointers and 6-byte record (data) pointers. Each leaf also keeps…
- R(A, B) = {(1, 3), (3, 2), (3, 4), (4, 2)} and S(B, C) = {(2, 5), (2, 7), (3, 6), (3, 7), (4, 5)}. How many tuples does σ{R.B ≠ S.B}(R ×…
- A query optimizer rewrites σ{city='Pune'}(Customer ⋈ Orders) as σ{city='Pune'}(Customer) ⋈ Orders, where city is an attribute of Customer…
- Which change is an example of PHYSICAL data independence in the three-schema architecture?
- Teach(course, teacher, book) satisfies course ↠ teacher | book, and the course DBMS has 3 teachers and 4 books. How many tuples must Teach…
- For the schedule R1(B), R1(C), W3(A), W1(C), R2(A), W2(C), R3(B), how many distinct serial schedules are conflict-equivalent to it?