Question: We are using a simple database about oil pipelines. Each pipeline is owner by some company. There are connection point where two pipelines can meet,

We are using a simple database about oil pipelines. Each pipeline is owner by some
company. There are connection point where two pipelines can meet, even if owned by
different companies.
Pipeline(id, name, owner)
Company(id, name, stockprice)
Connection(p1 id, p2 id)
where p1_id and p2_id are each FKs to
Pipeline.id
We want to find the names of all pipelines which are directly connected to some pipeline
owned by a different company.
How can we express that in relational calculus?
. name | Pipeline Pipeline (q)?? Connection (p,q)??p. ouner q.owner
 We are using a simple database about oil pipelines. Each pipeline

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!