1. Display employees (by name and address) from "Chicago" and with an annual salary between 60000 (included) and 90000 (excluded) then rename the output as "ChicagoEmployees" For each employee, who works in the "Design" department since January 2009, display the employee's name and the employee's annual salary 3. Find the name and rank of the manager who manages the "Research" department, also display the budget of that department. 4. Find the name of employees who earn more than $100,000 per year, along with the names of the departments they work in 5. Assume employees can work in more than one department, find employees (by name and salary) who work in the "Design" department but not the "Research" department.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter10: Transaction Management And Concurrency Control
Section: Chapter Questions
Problem 6P
icon
Related questions
Question
Employee:
(EID, Name, City, Address)
Department:
(DID, Department_Name, City, budget)
Works_IN:
(EID, DID, Annual_Salary, Start_Date)
Manages:
(ManagerID, DepartmentID, rank)
DID and EID in Works_IN relation are foreign keys referencing the primary keys of the Department and Employee
relations respectively. Manager_ID and Department_ID in the Manages relation are foreign keys referencing the
primary keys of the Employee and Department respectively.
From the relational schemas illustrated above, use the different relational algebra operators and operations (p, o, n,
N, U, -, X) discussed in class to build the following queries:
Display employees (by name and address) from "Chicago" and with an annual salary between 60000
(included) and 90000 (excluded) then rename the output as "ChicagoEmployees"
1.
2.
For each employee, who works in the “Design" department since January 2009, display the employee's
name and the employee's annual salary
3. Find the name and rank of the manager who manages the “Research" department, also display the budget
of that department.
4. Find the name of employees who earn more than $100,000 per year, along with the names of the
departments they work in
5. Assume employees can work in more than one department, find employees (by name and salary) who work
in the "Design" department but not the "Research" department.
Transcribed Image Text:Employee: (EID, Name, City, Address) Department: (DID, Department_Name, City, budget) Works_IN: (EID, DID, Annual_Salary, Start_Date) Manages: (ManagerID, DepartmentID, rank) DID and EID in Works_IN relation are foreign keys referencing the primary keys of the Department and Employee relations respectively. Manager_ID and Department_ID in the Manages relation are foreign keys referencing the primary keys of the Employee and Department respectively. From the relational schemas illustrated above, use the different relational algebra operators and operations (p, o, n, N, U, -, X) discussed in class to build the following queries: Display employees (by name and address) from "Chicago" and with an annual salary between 60000 (included) and 90000 (excluded) then rename the output as "ChicagoEmployees" 1. 2. For each employee, who works in the “Design" department since January 2009, display the employee's name and the employee's annual salary 3. Find the name and rank of the manager who manages the “Research" department, also display the budget of that department. 4. Find the name of employees who earn more than $100,000 per year, along with the names of the departments they work in 5. Assume employees can work in more than one department, find employees (by name and salary) who work in the "Design" department but not the "Research" department.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 7 steps with 5 images

Blurred answer
Knowledge Booster
Database Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr