MCQ · 2 marks · Relational Queries

GATE CS 2014 CS-3 — Q30

Consider the relational schema given below, where eId of the relation dependent is a foreign key referring to empId of the relation employee. Assume that every employee has at least one associated dependent in the dependent relation.

employee (empId, empName, empAge)
dependent(depId, eId, depName, depAge)

Consider the following relational algebra query:

ΠempId(employee)−ΠempId(employee⋈(empId=eID)∧(empAge≤depAge)dependent)\Pi_{empId}(\text{employee}) - \Pi_{empId}(\text{employee} \bowtie_{(\text{empId} = \text{eID}) \land (\text{empAge} \le \text{depAge})} \text{dependent})

The above query evaluates to the set of empIds of employees whose age is greater than that of
Select one option