CS FundamentalsHardGATE CS · DBMS
R(A, B, C, D, E) has functional dependencies DE → B, AC → E, AD → E, BD → CE, C → A. How many prime attributes does R have?
- A. 4
- B. 5
- C. 2
- D. 1
Correct answer: B. 5
The candidate keys are {AD, BD, CD, DE}, so the prime attributes (those in at least one candidate key) are ABCDE, giving 5. Counting only one key's attributes undercounts.
More DBMS and SQL questions
- A file has 50,000 records of 200 bytes stored unspanned in 2048-byte blocks, NOT ordered on attribute X. A dense secondary index on X (a…
- A table Teach(course, teacher, book) records that each course is taught by several teachers and uses several books, independently of each…
- How many of these statements are correct? 1. A BCNF decomposition obtained by the standard algorithm is always lossless. 2. A BCNF…
- R(A, B, C, D, E, F) has functional dependencies AD → BF, BD → F, F → A. How many superkeys does R have?
- R(A, B, C, D, E) with functional dependencies A → E, D → C, C → DE is decomposed into R1(C, D, E), R2(A, B, C). Which statement is correct?
- Which statement about linear hashing is correct?