Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Relations Note: Each table's primary key is underlined. Works Employee EmplD EmpName Dept Salary Manager 101 Alpha HR 200 202 Beta ENGR 250 303 Gamma

image text in transcribed

image text in transcribed

Relations Note: Each table's primary key is underlined. Works 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 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 Hours 5 10 15 20 12 8 4 16 7 17 22 2 11 13 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 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

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions