Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following query on the enterprise database. relation1(CID) :- company(cID, Facebook, a) relation2(elD) :- worksFor(eID, CID), relation1(CID) relation3(pID) :- project(pID, name, budget), budget >
Consider the following query on the enterprise database. relation1(CID) :- company(cID, Facebook, a) relation2(elD) :- worksFor(eID, CID), relation1(CID) relation3(pID) :- project(pID, name, budget), budget > 10000000 relation4(eID) :- worksOn(eID, PID), relation3(pID), not relation2(eld) relation5(elD1) :- manages(elD1, elD2), relation4(elD2) result(eName) :- employee(eld, eName, a), relation5(elD) Zresult What is the correct translation of this query? Find the names of all managers who manage employees who work on a project with a budget over 10000000 for Facebook. Find the names of all managers who manage employees who work on a project with a budget over 10000000, but who do not work for Facebook. Find the names of all managers who work on a project with a budget over 10000000 for Facebook. Find the names of all managers who work on a project with a budget over 10000000, but who do not work for Facebook
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started