GATE CS 2026 · Set-1 · SQL Queries

MSQ · 1 mark · Problem DBMS-SQL-0047

Let \(P, Q, R\) and \(S\) be the attributes of a relation in a relational schema. Let \(X \rightarrow Y\) indicate functional dependency in the context of a relational database, where \(X, Y \subseteq\{P, Q, R, S\}\). Which of the following options is/are always true?
  1. A
    If \((\{P, Q\} \rightarrow\{R\}\) and \(\{P\} \rightarrow\{R\})\), then \(\{Q\} \rightarrow\{R\}\)
  2. B
    If \(\{P, Q\} \rightarrow\{R\}\), then \((\{P\} \rightarrow\{R\}\) or \(\{Q\} \rightarrow\{R\})\)
  3. C
    If \((\{P\} \rightarrow\{R\}\) and \(\{Q\} \rightarrow\{S\})\), then \(\{P, Q\} \rightarrow\{R, S\}\)
  4. D
    If \(\{P\} \rightarrow\{R\}\), then \(\{P, Q\} \rightarrow\{R\}\)

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: C, D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/523060/gate-cse-2026-set-1-question-20

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com