Answered step by step
Verified Expert Solution
Link Copied!

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 >

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

Identify a sunk cost incurred by your school or college.

Answered: 1 week ago

Question

1.what is the significance of Taxonomy ?

Answered: 1 week ago

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago