Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TABLES: Division (DID, dname, managerID) Employee (EmpID, name, salary, DID ) Project (PID, pname, budget, DID ) Workon (PID, EmpID , hours) List the total

TABLES: Division (DID, dname, managerID)

Employee (EmpID, name, salary, DID)

Project (PID, pname, budget, DID)

Workon (PID, EmpID, hours)

List the total number of employees who work on project 'Web development'. Also list the total working hours for this project.

List the name of the project that 'chen' works on. (Hint: join 3 tables)

List the name of the employee who works on one or more projects with a budget over $5000. (Note: don't duplicate an employee in the list)

List the names that are shared among employees. (Note, This question was in assignment 3 but you must use a different approach than the one used in assignment 3.Hint: Use different aliases for the same table.)

List the name of the employee if he/she works on a project with a budget that is less than 10% of his/her salary. (Hint: join 3 tables)

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

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 3 Lnai 8726

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448440, 978-3662448441

More Books

Students also viewed these Databases questions