SQL: GATE CS Previous Year Questions

SQL · Databases

43 questions · asked in 23 of 27 years (2000–2026)

MCQ 34 · MSQ 1 · NAT 81-mark 26 · 2-mark 17

2000Questions per year2026

Questions 41–43 of 43

Q41GATE 20011 markMCQ−0.33 if wrong
Consider a relation geq which represents "greater than or equal to", that is, (x,y) ∈\in geq only if y≥\geqx:
 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 ?

Q42GATE 20001 markMCQ−0.33 if wrong
In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the following pairs is not equivalent?

Q43GATE 20001 markMCQ−0.33 if wrong
Given relations r(w, x) and s(y, z) the result of
 select distinct w, x from r, s 
is guaranteed to be same as r, provided.

Keep practising

Topics in Databases

All CS topics ›