CS FundamentalsModerateTCS Digital · Infosys
R(A, B, C) has the functional dependencies AB -> C and C -> B. Which is the highest normal form that R satisfies?
- A. BCNF
- B. 2NF but not 3NF
- C. 1NF but not 2NF
- D. 3NF but not BCNF
Correct answer: D. 3NF but not BCNF
Candidate keys are AB and AC, so every attribute is prime and 3NF holds. But C -> B has a non-superkey determinant, which violates BCNF.
More DBMS and SQL questions
- T(v) holds 40, 10, 30, 20, 50. What does SELECT v FROM T ORDER BY v DESC LIMIT 2 OFFSET 1 return, in order?
- T(x) holds 10, NULL, 20, 30, NULL. What does SELECT AVG(x) FROM T return?
- A bank's server crashes immediately after a transaction commits, before its changes are written to the data files. After restart the…
- Sc(n, s) holds (a, 90), (b, 85), (c, 85), (d, 80), (e, 70). For the row of n = 'd', what are RANK() OVER (ORDER BY s DESC) and DENSERANK()…
- E(n, dept, sal) holds (a, x, 50), (b, x, 70), (c, x, 60), (d, y, 40), (e, y, 40), (f, z, 90). How many rows does SELECT n FROM E e1 WHERE…
- P(id, mgr) holds (1, NULL), (2, 1), (3, 1), (4, 1), (5, 2), (6, 2). How many rows does SELECT FROM P a JOIN P b ON a.mgr = b.mgr AND a.id…