Question: Let's consider a generic schema with two tables: EMPLOYEES ( EmpID , EmpName, Department, Salary, ManagerID ) PROJECTS ( ProjectID , ProjectName, Department, Budget )

Let's consider a generic schema with two tables:
EMPLOYEES (EmpID, EmpName, Department, Salary, ManagerID)
PROJECTS (ProjectID, ProjectName, Department, Budget)
ASSIGNMENTS (EmpID, ProjectID, HoursWorked)
What will be the result of the following queries written in relational algebra?
1.\pi _ProjectID, ProjectName, Budget (\sigma _Budget >(\pi _AVG(Budget)(PROJECTS))
2.\pi _EmpID, EmpName ((\sigma _Department='IT'(ASSIGNMENTS PROJECTS))\cap
(\sigma _Department='Finance' (ASSIGNMENTS PROJECTS)))
3. Department, AVG(HoursWorked)(ASSIGNMENTS PROJECTS)|(Group by
Department)
4.\pi _ManagerID, EmpName (EMPLOYEES \rho _EmpID=ManagerID (EMPLOYEES))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!