110 likes | 228 Vues
This presentation explores the concept of outer joins in relational databases, specifically focusing on left, right, and full outer joins. Through conceptual animations, it illustrates how unmatched rows from both tables are handled during these join operations. Examples from tables featuring faculty data demonstrate the practical application of these join types. By the end, viewers will gain clarity on how different outer joins affect data retrieval and how to effectively utilize them to match or retrieve unmatched records.
E N D
Chapter 3 Supplemental Slides Outer Join Demonstration
Join Matched rows using the join condition Conceptual Animation Table 1 (left) Table 2 (right)
Left outer join Join Join Unmatched rows of the left table Matched rows using the join condition Matched rows using the join condition Conceptual Animation Table 1 (left) Table 2 (right)
Full outer join Left outer join Right outer join Join Join Join Unmatched rows of the left table Matched rows using the join condition Matched rows using the join condition Matched rows using the join condition Unmatched rows of the right table Conceptual Animation Table 1 (left) Table 2 (right)
Full Outer Join Animation Matching rows Faculty Full Join Offering OfferNo FacSSN FacName 1111 111-11-1111 JOE 2222 222-22-2222 SUE 3333 111-11-1111 JOE
Full Outer Join Animation Faculty Full Join Offering OfferNo FacSSN FacName 1111 111-11-1111 JOE 2222 222-22-2222 SUE 3333 111-11-1111 JOE 4444
333-33-3333 SARA Full Outer Join Animation Faculty Full Join Offering OfferNo FacSSN FacName 1111 111-11-1111 JOE 2222 222-22-2222 SUE 3333 111-11-1111 JOE 4444
Left Outer Join Animation Matching rows
Left Outer Join Animation Offering Left Join Faculty OfferNo FacSSN FacName 1111 111-11-1111 JOE 2222 222-22-2222 SUE 3333 111-11-1111 JOE 4444