Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 - Define the five basic relational algebra operations. Define the Join, Intersection, and Division operations in terms of these five basic operations. 2 -

1- Define the five basic relational algebra operations. Define the Join, Intersection, and
Division operations in terms of these five basic operations.
2- Discuss the differences between the five Join operations: Theta join, Equijoin, Natural
join, Outer join, and Semijoin. Give examples to illustrate your answer.
A) For following questions, you should formulate the following queries in relational
algebra according to relational schemas that are depicted below.
Employee (empNo, fName, IName, address, DOB, sex, position, deptNo)
Department (deptNo, deptName,mgrEmpNo)
Project (projNo, projName, deptNo)
WorksOn (empNo, projNo, dateWorked, hoursWorked)
List all employees.
List all the details of employees who are female.
List the names and addresses of all employees who are managers.
Produce a list of the names and addresses of all employees who work for the IT
department.
Produce a list of the names of all employees who work on the SCCS project.
Produce a complete list of all employee whose manager name is "Zoran."
B) What are the results of following relational algebra operations?
Tables: 1-name(student)
2-code=cpl500 OR code=cp 3010(subject)
3- student |>|enrolledIn
4-student -name-ling(student)
5-student |>|studentid=enrolledln.id enrolledIn
6-(student {:|>|enrolledIn)
8- subject {:?enrolledstudent)
9-Who teaches cp 1500?
image text in transcribed

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions