Question 8703 – ER-Model
December 11, 2023
Question 9142 – GATE 2008
December 11, 2023
Question 8703 – ER-Model
December 11, 2023
Question 9142 – GATE 2008
December 11, 2023

Question 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.
A
some dependent.
B
all dependents.
C
some of his/her dependents.
D
all of his/her dependents.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!