Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the relational database. Give an expression in relational algebra to express each of the following queries: 1.Find the names of all employees who live

Consider the relational database. Give an expression in relational algebra to express each of the following queries:

image text in transcribed

1.Find the names of all employees who live in the city "Brooklyn".

2.Find the names and cities of residence of all employees who earn a salary of at least $50,000.

3.Find the names of all employees who work for the company "Fedco" and earn a salary of at least $50,000.

4.Find the names and cities of residence of all employees who work for a company located in the city "Brooklyn".

5.Find the number of employees managed by each manager.

6.Find the names of all employees who earn more than every employee of "Small Bank Corporation"

employee (person name, street,city) works (person name, company name, salary) company (company name, city) manages (person.name, manager name)

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

Compare the different types of employee separation actions.

Answered: 1 week ago

Question

Assess alternative dispute resolution methods.

Answered: 1 week ago

Question

Distinguish between intrinsic and extrinsic rewards.

Answered: 1 week ago