Click here to load reader
Upload
dakota-vinson
View
36
Download
1
Embed Size (px)
DESCRIPTION
Chapter 2 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. - PowerPoint PPT Presentation
Citation preview
Chapter 2 Supplemental SlidesChapter 2 Supplemental SlidesOuter Join Demonstration
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Table 2 (right)
Conceptual AnimationConceptual Animation
Table 1 (left) Join
Matched rows using the join condition
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Table 2 (right)
Conceptual AnimationConceptual Animation
Table 1 (left)
Unmatched rows of the left table
Left outer join Join
Matched rows using the join condition
Join
Matched rows using the join condition
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Table 2 (right)
Conceptual AnimationConceptual Animation
Table 1 (left)
Unmatched rows of the left table
Left outer join Join
Matched rows using the join condition
Join
Matched rows using the join condition
Unmatched rows of the right table
Right outer join
Full outer join
Join
Matched rows using the join condition
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Full Outer Join AnimationFull Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Full Outer Join AnimationFull Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444Faculty Full Join Offering
OfferNo FacSSN FacName
1111 111-11-1111 JOE
2222 222-22-2222 SUE
3333 111-11-1111 JOE
Matching rows
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Full Outer Join AnimationFull Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444
4444
Faculty Full Join Offering
JOE
SUE
JOE
FacName
111-11-11113333
222-22-22222222
111-11-11111111
FacSSNOfferNo
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Full Outer Join AnimationFull Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444
SARA333-33-3333
4444
Faculty Full Join Offering
JOE
SUE
JOE
FacName
111-11-11113333
222-22-22222222
111-11-11111111
FacSSNOfferNo
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Left Outer Join AnimationLeft Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Left Outer Join AnimationLeft Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444Offering Left Join Faculty
OfferNo FacSSN FacName
1111 111-11-1111 JOE
2222 222-22-2222 SUE
3333 111-11-1111 JOE
Matching rows
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Left Outer Join AnimationLeft Outer Join Animation
FacultyFacSSN FacName
111-11-1111 JOE
222-22-2222 SUE
333-33-3333 SARA
OfferingOfferNo FacSSN
1111 111-11-1111
2222 222-22-2222
3333 111-11-1111
4444
4444
Offering Left Join Faculty
JOE
SUE
JOE
FacName
111-11-11113333
222-22-22222222
111-11-11111111
FacSSNOfferNo