Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Analyse the process of new product of development.

Answered: 1 week ago

Question

Define Trade Mark.

Answered: 1 week ago

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago