GATEverse Practice, past papers & mock tests
GATE 2014 · session-3
Database ManagementRelational Model: Relational Algebra and Tuple CalculusmediumMCQ2 marks
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) Primary keys: employee.empId; dependent.(depId,eId). 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
Save your progress

Related Database Management PYQs