Relational Algebra Exercises
Relational Algebra Exercises
The University of Birmingham School of Computer Science c Achim Jung & Uday Reddy & Ata Kab an 2011
Exercise Sheet 4
Exercise 1: Outer Joins
Given below are two tables T1 and T2 . T1 : A B 1 2 4 5 7 8 C 3 6 9 T2 : B 2 2 2 6 C 3 3 6 7 D 10 11 10 12
a. Calculate the (natural) inner join T1 T2 of the two tables. b. Which tuples of T1 and T2 are dangling tuples in this calculation? c. Calculate the (natural) outer join of the two tables. (This is denoted T1 T2 .) d. Which tuples of the outer join are included if we are only interested in the left outer join?
b.