Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (40 points) Using the schema of the tables on the next page, write relational algebra expressions for the following queries/statements. Note that each of

image text in transcribedimage text in transcribed

2. (40 points) Using the schema of the tables on the next page, write relational algebra expressions for the following queries/statements. Note that each of these may require several steps. 2.1 List the name of each employee that has a higher salary than his or her manager 2.2 For each project location, list the number of projects is has along with its total (sum) hours 2.3 Give the location and budget of the project with the most (max count) employees 2.4 Increase (update) by 10% the budget for the project with the most (max count) employees 2.5 Remove projects that do not have any employees working on them Note: Each table's primary key is underlined. Works Hours 5 10 Employee EmplD EmpName Dept Salary Manager 101 Alpha HR 200 202 Beta ENGR 250 303 Gamma IT 300 202 404 Delta ENGR 275 202 505 Epsilon HR 325 101 606 Zeta IT 225 404 707 Omega IT 300 303 15 20 12 8 EmplD ProjiD 101 Red 101 Orange 101 Yellow 202 Green 202 Blue 303 Indigo 303 Violet 303 Red 404 Orange 404 Yellow 505 Green 505 Blue 505 Indigo 606 Violet 4 16 7 17 22 2 Project Projid Loc Budget Lead Red NW 1000 707 Orange NE 1100 707 Yellow SW 950 606 Green SE 900 606 Blue NW 1200 505 Indigo SW 1000 404 Violet NW 1150 303 11 13

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_2

Step: 3

blur-text-image_3

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

What is superheat?

Answered: 1 week ago