Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Using Relational Algebra specify the following queries on the COMPANY relational database schema (a) For each project, find the total spent hours by all employees

Using Relational Algebra specify the following queries on the COMPANY relational database schema

image text in transcribed

(a) For each project, find the total spent hours by all employees

(b) For each project, list the names of projects the have total spent hours (spent by all employees) less than the average spent hours of all projects.

(c) Retrieve the names of employees who work on every project controlled by Research department.

EMPLOYEE Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr ssn Mgr_start date DEPT LOCATIONS Dnumber Dlocation PROJECT PnamePnumber Plocation Dnum WORKS ON Essn Pno | Hours DEPENDENT Essn Dependent name SexBdate Relationship

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions