Tuple Calculus: GATE CS Previous Year Questions

Tuple Calculus · Databases

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

MCQ 7 · NAT 11-mark 5 · 2-mark 3

2000Questions per year2026

Questions 6–8 of 8

Q6GATE 20071 markMCQ−0.33 if wrong
Consider the relation employee(name, sex, supervisorName) with name as the key. supervisorName gives the name of the supervisor of the employee under consideration. What does the following Tuple Relational Calculus query produce?
{ e.name∣employee(e)∧(∀x)[¬ employee(x)∨x.supervisorName≠e.name∨x.sex="male"] }\{\, e.\text{name} \mid \text{employee}(e) \land (\forall x)\left[\neg\,\text{employee}(x) \lor x.\text{supervisorName} \neq e.\text{name} \lor x.\text{sex} = \text{"male"}\right] \,\}

Q7GATE 20061 markMCQ−0.33 if wrong
Which of the following relational query languages have the same expressive power?
I. Relational algebra
II. Tuple relational calculus restricted to safe expressions
III. Domain relational calculus restricted to safe expressions

Q8GATE 20011 markMCQ−0.33 if wrong
Which of the following relational calculus expressions is not safe ?
(a)    {t∣∃u∈R1 (t[A]=u[A])∧¬∃s∈R2 (t[A]=s[A])}\text{(a)}\;\; \{t \mid \exists u \in R_1\,(t[A] = u[A]) \wedge \neg \exists s \in R_2\,(t[A] = s[A])\}
(b)    {t∣∀u∈R1 (u[A]="x"⇒∃s∈R2 (t[A]=s[A]∧s[A]=u[A]))}\text{(b)}\;\; \{t \mid \forall u \in R_1\,(u[A] = \text{"}x\text{"} \Rightarrow \exists s \in R_2\,(t[A] = s[A] \wedge s[A] = u[A]))\}
(c)    {t∣¬(t∈R1)}\text{(c)}\;\; \{t \mid \neg (t \in R_1)\}
(d)    {t∣∃u∈R1 (t[A]=u[A])∧∃s∈R2 (t[A]=s[A])}\text{(d)}\;\; \{t \mid \exists u \in R_1\,(t[A] = u[A]) \wedge \exists s \in R_2\,(t[A] = s[A])\}

Keep practising

Topics in Databases

All CS topics ›