Question
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:
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started