CS FundamentalsHardGATE CS (PYQ pattern)
R(A, B, C, D, E, F) has the functional dependencies DB → A, AC → D, E → D, DE → A, AB → E. What is the highest normal form of R among 1NF, 2NF, 3NF and BCNF?
- A. 3NF
- B. BCNF
- C. 2NF
- D. 1NF
Correct answer: A. 3NF
Candidate keys ['ABCF', 'BCDF', 'BCEF']; every FD with a non-superkey determinant has a prime attribute on its right side (so 3NF holds) but at least one determinant is not a superkey (BCNF fails).
More DBMS and SQL questions
- R(A, B, C, D, E, F) has the functional dependencies A → C, D → E, AC → B, C → F, FD → A, A → D. The 3NF synthesis algorithm computes a…
- R(A, B, C, D, E) has the functional dependencies A → B, BC → D and D → E. How many non-trivial functional dependencies of the form X → Y…
- A relation R(A, B, C) holds the tuples (1,x,10), (1,y,20), (2,x,20), (2,z,30), (3,y,10). It is decomposed into R1 = π(A,B) R and R2 =…
- Tables D(d): 1, 2, 3, 4. E(e, d, sal): (10,1,60), (11,1,40), (12,2,30), (13,3,70), (14,3,80), (15,NULL,90). How many rows does SELECT FROM…
- T(x) holds 1, 2, 3, 4, 5, 6, NULL and U(y) holds 2, 4, NULL. Let a, b, c be the row counts of (a) SELECT FROM T WHERE x NOT IN (SELECT y…
- Table S(id, v): (1,10), (2,20), (3,20), (4,30), (5,30), (6,40). SELECT SUM(v) OVER (ORDER BY v) AS s FROM S ORDER BY id; What is the sum…