Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I can do the answers of A- a,b,c , I need the answers for A- d,e, f , g, h. COP4710 Spring 2018 Assignment 1

I can do the answers of A- a,b,c , I need the answers for A- d,e, f , g, h.

image text in transcribedimage text in transcribed

COP4710 Spring 2018 Assignment 1 Due: 11:30pm, February 11, 2018 (Sunday). All problems are equally weighted! A. Given the following database schema E - Employee (Ename, SSN, Age, salary, Supervisor SSN, Dno) D - Department (Dname, Dnumber, Dlocation, Manager SSN, Mgr StartingDate) P - Project (Pname, Pnumber, Plocation) W- Works On (ESSN, Pno, Hours) De Dependent (ESSN, D name, DoB, Relationship) and the following set of foreign keys EmployeeSupervisor SSN EmployeeSSN EmployeeDno Department. Dnumber DepartmentManager-SSN EmployeeSSN Works. ON. ESSN Employee .SSN Works-On.Pno ProjectPnumber Dependent.ESSN Employee.SSN Write the following queries in relational algebra a. Find the names of all employees who work more than 15 hours on project X (Pname); Find the names of all employees who work more than 15 hours on project X (Pname), and the person should have at least one dependent; Find the ids of those who work on a project located in Brooklyn but never in a project located in Long Island; Return the names of those who have the lowest salary among all employees whose age is between 35 and 40; Find the names of employees whose salary is higher than that of his/her supervisor; Find the names of all employees who have a dependent with the same name as themselves; Find the names and SSNs of employees who worked on EVERY project located in Brooklyn; Find the names of those who worked on exactly two projects; b. c. d. e. f. g. h

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

Students also viewed these Databases questions