GATE CS 2014 · Set-1 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0100

Given the following statements:S1: A foreign key declaration can always be replaced by an equivalent check assertion in SQL S2: Given the table R(a,b,c) where a and b together form the primary key, the following is a valid table definition. CREATE TABLE S ( a INTEGER, d INTEGER, e INTEGER, PRIMARY KEY (d), FOREIGN KEY (a) references R) Which one of the following statements is CORRECT?
  1. A
    S1 is TRUE and S2 is a FALSE
  2. B
    Both S1 and S2 are TRUE
  3. C
    S1 is FALSE and S2 is a TRUE
  4. D
    Both S1 and S2 are FALSE

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1789/gate2014-1-22

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