CS FundamentalsHardGATE CS · Amazon/Microsoft placement
Σ = {B → A, D → B, AD → C, A → D}. Consider the FD AD → C while computing a canonical cover. Which statement about extraneous attributes on its left side is correct?
- A. Neither A nor D is extraneous
- B. Either A or D (but not both) can be dropped
- C. Only A is extraneous
- D. Only D is extraneous
Correct answer: B. Either A or D (but not both) can be dropped
Test each attribute: A is extraneous iff {D}⁺ (under Σ) contains C; {D}⁺ = {ABCD} and {A}⁺ = {ABCD}.
More DBMS and SQL questions
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- R(A, B, C, D, E, F) has FDs BF → A, BD → EF, E → CD, CF → B. Each option is a relation schema obtained by projecting R, with the…
- R(A, B, C, D, E, F) has functional dependencies BF → DE, C → E, F → E, DF → B. Which of the following is the complete set of candidate…
- R(A, B, C, D, E) has functional dependencies E → CD, C → A, D → AC. Which decomposition of R is lossless-join?
- Classify the schedule R2(B), W2(B), W1(A), R1(A), W1(B), C1, C2 (Ci = commit of Ti) by the strongest property it satisfies.
- Which statement about the basic timestamp-ordering protocol is correct?