Professional Documents
Culture Documents
ch5
ch5
R S
(Left) outer join is join in which tuples from
R that do not have matching values in
common columns of S are also included in
result relation.
R S
(Right) outer join is join in which tuples from
S that do not have matching values in
common columns of R are also included in
result relation.
Pearson Education © 2014 36
Example - Left Outer join
Produce a status report on property
viewings.
i.e., all viewings for each property in the
inventory; include properties with no
viewings
propertyNo, street, city(PropertyForRent)
Viewing
R F S = A(R F S)
where A are the attributes of R
(clientNo, propertyNo(Viewing))
(propertyNo(rooms = 3 (PropertyForRent)))