GATE CS 2001 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0153

Consider a relation geq which represents "greater than or equal to", that is, (x,y) \(\in\) geq only if y\(\geq\)x: create table geq
(
  ib integer not null
  ub integer not null
  primary key ib
  foreign key (ub) references geq on delete cascade
)
Which of the following is possible if a tuple (x,y) is deleted ?
  1. A
    A tuple (z,w) with z \(\gt\) y is deleted
  2. B
    A tuple (z,w) with z \(\gt\) x is deleted
  3. C
    A tuple (z,w) with w \(\lt\) x is deleted
  4. D
    The deletion of (x,y) is prohibited

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/743/gate2001-2-25

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