434 views
0 votes
0 votes

What is the correct interpretion of this query

1 Answer

0 votes
0 votes

A, B and C are temprary variables

All the MGRSSN will be stored in A from Department table under the column name SSN.
All the ESSN will be stored in B from Dependent table under the column name SSN. So that the set difference can be calculated further.

C <-- A-B 

C will store those MGRSSN who don't have any dependent.

There is natural join of employee with C, it means the names of those employees who are manager and don't have any dependent will be stored in the Result variable.

edited

Related questions

0 votes
0 votes
0 answers
1
peter09 asked Apr 16
46 views
Give an appropriate tree-structure diagram for the following relational database:Employee (person_name, street, city)Works (person_name, company_name, salary)Company (com...
0 votes
0 votes
1 answer
3
phaniphani asked Nov 16, 2023
199 views
is it allowed in a B+ tree, while deletion to leave behind a key in internal nodes while deleting it from the leaf ?