next up previous
Next: Join types and conditions Up: Joined Relations Previous: Joined Relations

Examples

  1. Two given relations: loan and borrower.

      figure792
    Figure 4.1:   The loan and borrower relations.

  2. inner join:

     loan inner join borrower on loan.loan# = borrower.loan#
    

    Notice that the loan# will appear twice in the inner joined relation.

      figure813
    Figure 4.2:   Result of loan inner join borrower.

  3. left outer join:

     loan left outer join borrower on loan.loan# = borrower.loan#
    

      figure830
    Figure 4.3:   Result of loan left outer join borrower.

  4. natural inner join:

     loan natural inner join borrower
    

      figure847
    Figure 4.4:   Result of loan natural inner join borrower.



Osmar Zaiane
Fri May 22 19:39:12 PDT 1998