Observe that the tables are not “linked” by any where condition; as expected
in the definition of the product, all combinations of rows are considered. After
computing the product, a projection eliminates all attributes except STUDENTS.name
and INSTRUCTORS.name.
Also, note that we use qualified attributes as required by the definition of
table product (see Definition 4.1.7).
The result produced by the query shown in Example 5.8.1 does not differentiate
between the attributes STUDENTS.name and INSTRUCTORS.name and
this may confuse the user. Therefore, it is preferable to rename the columns of
the result using the option as: