Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational schemas, namely Employee, WorkOn, and Project. Employee (eid, ename, age, supv_eid) WorkOn (eid, pid) Project (pid, pname, year) The key

 

Consider the following relational schemas, namely Employee, WorkOn, and Project. Employee (eid, ename, age, supv_eid) WorkOn (eid, pid) Project (pid, pname, year) The key fields are bold. WorkOn.eid refers to Employee.eid, WorkOn.pid refers to Project.pid, and Employee.supv_eid refers to Employee.eid. Write a SQL statement to answer the following question. Retrieve the names of employees who have worked on both 'Database' and 'DataMining' projects.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

You can use a SQL statement with subqueries to retrieve the names of emplo... 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

Step: 3

blur-text-image

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

Database management systems

Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff

3rd edition

72465638, 978-0072465631

More Books

Students also viewed these Databases questions

Question

What is expert power? Give an example of it in action.

Answered: 1 week ago