-
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. supervisor Name ≠ e. name vx. sex = “male”]
-
- Names of employees with a male supervisor
- Names of employees with no immediate male subordinates
- Names of employees with no immediate female subordinates
- Names of employees with a female supervisor
- Names of employees with a male supervisor
Correct Option: C
We are given with the below relational calculus:
{e.name|employee (e) ∧}
(∀x)[ ̚ employee (x) ∨ x.x.supervisorName ≠ x.sex = “male” ]}
{e.name|employee (e) ∧} gives he name of the employee
(∀x)[ ̚ employee (x)j v x.supervisorName ≠ x.sex = “male” ]} tells that employee does not have nay female subordinate.