11

Click here to load reader

Chapter 2 Supplemental Slides

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

Page 1: Chapter 2 Supplemental Slides

Chapter 2 Supplemental SlidesChapter 2 Supplemental SlidesOuter Join Demonstration

Page 2: Chapter 2 Supplemental Slides

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

Page 3: Chapter 2 Supplemental Slides

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

Page 4: Chapter 2 Supplemental Slides

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

Page 5: Chapter 2 Supplemental Slides

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

Page 6: Chapter 2 Supplemental Slides

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

Page 7: Chapter 2 Supplemental Slides

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

Page 8: Chapter 2 Supplemental Slides

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

Page 9: Chapter 2 Supplemental Slides

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

Page 10: Chapter 2 Supplemental Slides

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

Page 11: Chapter 2 Supplemental Slides

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