1 Answers
Option 4 : (I), (II) and (III)
Concept:
Safe tuple expression is the one that guaranteed to yield a finite number of tuples as its results. Otherwise, it is called unsafe.
Explanation:
∀ = for all
∃ = There exist / some
Consider the options one by one
Option 1:
{t |∃u ∈ EMP(tEmpName] = u ∧ ∀ v∈ DEPT(t ≠ v))}
It gives all the name of employees who do not belong to the any department. Before ∧ operator, it results in finite tuples, after ∧ it results in infinite number of tuples. Finite ∧ infinite results in finite number of tuples. So, it is safe expression
Option 2:
{t |∃ u ∈ EMP(t = u ∧ ∃ v ∈ DEPT(t ≠ v))}
It gives the employee names who do not belong to some department. Before ∧ it is finite, after ∧ it is infinite. Results in a finite number of tuples. So, it is safe expression.
Option 3:
{t | ∃ u∈ EMP(t = u ∧ ∃ v ∈ DEPT(t = v))}
This expression gives the name of employees who belongs to atleast one same department. It also results in a finite expression. So, it is safe expression.
All three are safe expressions.