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, 7, n, U, -, A) discussed in class to build the following queries: 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" 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.
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, 7, n, U, -, A) discussed in class to build the following queries: 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" 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.
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 5HOA: Access path A database table is composed of records and fields hold data. Data is stored in records....
Related questions
Question
Expert Solution
Step 1
All the above details that are mentioned above in the question we will take to solve the question:
so after taking all the input from the question here is the solution:-
//person.java:
public class person {
private String name;
private int age;
person(String name, int age){
this.name = name;
this.age = age;
}
public String getName() {
return name;
}
public void setName(String n) {
name = n;
}
public int getAge() {
return age;
}
public void setAge(int a) {
age = a;
}
@Override
public String toString() {
return "Name: " + name + "\nAge: " + age;
}
}
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Knowledge Booster
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.Recommended textbooks for you
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
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
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
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr