Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with only e,f,g, and h Thank you, please explain if possible. (120) Consider the employee database of Fig. 1, where the primary keys

Please help with only e,f,g, and h

Thank you, please explain if possible.

image text in transcribed

(120) Consider the employee database of Fig. 1, where the primary keys are underlined. For each of the following questions, give (1) a relational algebra expression, (2) a tuple relational calculus expression, and (3) a domain relational calculus expression. Note that each problem has 15 points with 5 points for each of the thre 1. e required expressions. Find the names of all employees who work for First Bank Corporation. Bank Corporation. who work for First Bank Corporation and earn more than S10,000 companies for which they work. same streets as do their managers Corporation. Small Bank Corporation. companies located in every city in which Small Bank Corporation is a. b. Find the names and cities of residence of all employees who work for First c. Find the names, street addresses, and cities of residence of all employees d. Find all employees in the database who live in the same cities as the e. Find all employees in the database who live in the same cities and on the f. Find all employees in the database who do not work for the First Bank g. Find all employees in the database who earn more than each employee of h. Assume that the companies may be located in several cities. Find all located employee(employee-id, employee-name, street, city) works(employee-id, company-id, salary) company(company-id, company-name, city) manages(emplovee-id, manager-id) Figure 1. Employee database Note: For each tuple of the manages relation, the manager-id is the manager's employee id (120) Consider the employee database of Fig. 1, where the primary keys are underlined. For each of the following questions, give (1) a relational algebra expression, (2) a tuple relational calculus expression, and (3) a domain relational calculus expression. Note that each problem has 15 points with 5 points for each of the thre 1. e required expressions. Find the names of all employees who work for First Bank Corporation. Bank Corporation. who work for First Bank Corporation and earn more than S10,000 companies for which they work. same streets as do their managers Corporation. Small Bank Corporation. companies located in every city in which Small Bank Corporation is a. b. Find the names and cities of residence of all employees who work for First c. Find the names, street addresses, and cities of residence of all employees d. Find all employees in the database who live in the same cities as the e. Find all employees in the database who live in the same cities and on the f. Find all employees in the database who do not work for the First Bank g. Find all employees in the database who earn more than each employee of h. Assume that the companies may be located in several cities. Find all located employee(employee-id, employee-name, street, city) works(employee-id, company-id, salary) company(company-id, company-name, city) manages(emplovee-id, manager-id) Figure 1. Employee database Note: For each tuple of the manages relation, the manager-id is the manager's employee id

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Does it clearly identify what you have done and accomplished?

Answered: 1 week ago