Question: Consider the relational database of Figure. Write a Datalog program for each of the following queries: a. Find all employees who work (directly or indirectly)
Consider the relational database of Figure. Write a Datalog program for each of the following queries:
a. Find all employees who work (directly or indirectly) under the manager “Jones”.
b. Find all cities of residence of all employees who work (directly or indirectly) under the manager “Jones”.
c. Find all pairs of employees who have a (direct or indirect) manager in common.
d. Find all pairs of employees who have a (direct or indirect) manager in common, and are at the same number of levels of supervision below the common manager.
Step by Step Solution
3.31 Rating (166 Votes )
There are 3 Steps involved in it
a Find all employees who work directly or indirectly under the man... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
16-CS-DB (157).docx
120 KBs Word File
