程序代写代做代考 1.

1.
I. Relational algebra (RA) review – 15 mins
II. Relational algebra and SQL statements – 35 mins
Exercises: RA review
• Fundamental operations
o Removal operators: Selection (𝜎) and Projection (𝜋)
o Set operators: Set-difference (–) and Union ()
o Combine the rows from two relations: Cross Product (×)
• Compound operations o Intersection()
o NaturalJoin(⨝)
o Condition Join (Theta/Inner Join)
Consider the following schema:
2.
Objectives:
This tutorial will cover:
INFO20003 Tutorial – Week 5
(Tutorial: Relational algebra and translation to SQL)
INFO20003 Tutorial – Week 5 1

Solve the following problems using relational algebra (RA) and translate to SQL statements:
a. Find the names of all employees.
b. Find the names of all employees in department number 1.
c. List the names of green items of type C.
d. Find the items sold by the departments on the second floor (only show ItemID).
e. Find the names of brown items sold by the Recreation department.
f. Find the employees whose salary is less than half that of their managers.
INFO20003 Tutorial – Week 5 2