Question 8703 – ER-Model
December 11, 2023Question 9142 – GATE 2008
December 11, 2023Question 8711 – ER-Model
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)
The above query evaluates to the set of empIds of employees whose age is greater than that of
Correct Answer: D
Question 14 Explanation:
The inner query selects the employees whose age is less than or equal to at least one of his dependents. So, subtracting from the set of employees, gives employees whose age is greater than all of his dependents.
some dependent.
all dependents.
some of his/her dependents.
all of his/her dependents.
Subscribe
Login
0 Comments