Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the following queries in relational algebra, using the schema below, where the primary keys are bolded. employee ( eid , ename, street, city) company

Write the following queries in relational algebra, using the schema below, where the primary keys are bolded.

employee (eid, ename, street, city)

company (cid, cname, city)

works (eid, cid, salary)

manages (eid, manager_id)

(note: manager_id is a foreign key referencing eid in employee relation. In other words, managers are also employees.)

a. Find the ids, names, street addresses, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000.

b. Find the ids and names of all employees who live in the same city as the company for which they work.

c. Find the pairs of employees who live on the same street and in the same city.

d. Find the name of Peter Parkers manager.

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

What is the effect of word war second?

Answered: 1 week ago

Question

Describe three other types of visual aids.

Answered: 1 week ago