Similar questions 2 more →
Functional Dependencies & Keys

Answer & solution
Official answer: C, D
Step through it (4 parts)
Givens and goal
For attributes P,Q,R,S, assess: A PQ→R and P→R imply Q→R; B PQ→R implies P→R or Q→R; C P→R and Q→S imply PQ→RS; D P→R implies PQ→R.
Approach
Prove valid implications with agreement of tuples or Armstrong’s axioms, and refute invalid ones with small relations.
Step-by-step solution
1. To prove D, take two tuples agreeing on both P and Q. They agree on P, so P→R forces agreement on R. Adding an attribute to the determinant cannot invalidate a dependency. Thus D is true.
2. To prove C, two tuples agreeing on PQ agree on P and therefore R; they also agree on Q and therefore S. Hence they agree on RS, establishing PQ→RS. This is augmentation followed by union.
3. A is false. Consider the rows (P,Q,R,S)=(0,0,0,0) and (1,0,1,0). P uniquely determines R, and PQ also determines R. However the same Q=0 occurs with both R=0 and R=1, so Q→R fails. There is no “cancellation” rule for determinant attributes.
4. B is false. Use four rows with S fixed at 0 and R=P XOR Q:
P Q R S
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 0Every PQ pair has one R, so PQ→R holds. Holding only P fixed allows two R values, and holding only Q fixed does likewise. Neither individual dependency holds.
5. Therefore only C and D are always true. One relation satisfying the premises and violating the conclusion is sufficient to disprove each proposed universal inference.