CS FundamentalsHardGATE CS · Amazon/Microsoft placement
Σ = {DE → C, AB → CE, D → ABE}. Consider the FD DE → C while computing a canonical cover. Which statement about extraneous attributes on its left side is correct?
- A. Neither D nor E is extraneous
- B. Only D is extraneous
- C. Either D or E (but not both) can be dropped
- D. Only E is extraneous
Correct answer: D. Only E is extraneous
Test each attribute: D is extraneous iff {E}⁺ (under Σ) contains C; {E}⁺ = {E} and {D}⁺ = {ABCDE}.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies A → D, CE → AB, AB → C, C → AB. How many prime attributes does R have?
- Classify the schedule W1(A), W3(A), R3(A), R3(B), R1(A), R2(A), R2(B).
- R(A, B, C, D, E) has functional dependencies BD → A, E → B, B → E, AD → B. Which of the following is the complete set of candidate keys of…
- Relations R (600 blocks) and S (90 blocks) are joined with block nested-loop join using M = 32 buffer blocks (M − 2 for the outer…
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). What does this query return? sql SELECT…
- How many of these statements are correct? 1. A table can have at most one clustering index. 2. A primary index on an ordering key field is…