Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 (30 points) Consider the following schemas: Employees (eid, ename, age) Projects (pid, pname, mgr_eid) The key fields are bold and underlined. WorkOn.eid refers
Question 1 (30 points) Consider the following schemas: Employees (eid, ename, age) Projects (pid, pname, mgr_eid) The key fields are bold and underlined. WorkOn.eid refers to Employees.eid WorkOn.pid refers to Projects.pid. - Projects.mgr_eid refers to Employees.eid. Let E be Employees, let W be WorkOn, and let P be Projects Write Relational Algebra for the following queries. 1) (6 points) List employee's names and their manager's names. 2) 6 points) List the names of employees who never worked in the Database' project. 3) 6 points) List the names of employees who had worked in both 'Database project and DataMining' project. 4) (6 points) List the names of managers who managed more than one project. 5) 6 points) List the names of projects which are worked by all employees. Question 1 (30 points) Consider the following schemas: Employees (eid, ename, age) Projects (pid, pname, mgr_eid) The key fields are bold and underlined. WorkOn.eid refers to Employees.eid WorkOn.pid refers to Projects.pid. - Projects.mgr_eid refers to Employees.eid. Let E be Employees, let W be WorkOn, and let P be Projects Write Relational Algebra for the following queries. 1) (6 points) List employee's names and their manager's names. 2) 6 points) List the names of employees who never worked in the Database' project. 3) 6 points) List the names of employees who had worked in both 'Database project and DataMining' project. 4) (6 points) List the names of managers who managed more than one project. 5) 6 points) List the names of projects which are worked by all employees
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