Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Inner Join and Outer Joins Dec 15 2004. B,D,F A G C Dancing and Tennis Dancing only Tennis Only The Whole Picture.

Similar presentations


Presentation on theme: "The Inner Join and Outer Joins Dec 15 2004. B,D,F A G C Dancing and Tennis Dancing only Tennis Only The Whole Picture."— Presentation transcript:

1 The Inner Join and Outer Joins Dec 15 2004

2

3 B,D,F A G C Dancing and Tennis Dancing only Tennis Only The Whole Picture

4 B,D,F The Inner Join Inner

5 B,D,F A G The Left Outer Join LeftInner

6 B,D,FC The Right Outer Join Right Inner

7 B,D,F A G C The Full Outer Join Left Right Inner

8 A G C The Exclusive Join Left Right

9 Using Plausible Keys To link The tables together …. dance ____ JOIN tennis ON dance.scode=tennis.scode

10 B,D,F The Inner Join Inner SELECT * FROM dance inner join tennis On dance.scode=tennis.scode

11 B,D,F A G The Left Outer Join LeftInner SELECT * FROM dance left outer join tennis On dance.scode=tennis.scode

12 B,D,FC The Right Outer Join RightInner SELECT * FROM dance right outer join tennis On dance.scode=tennis.scode

13 B,D,F A G C The Full Outer Join LeftRightInner SELECT * FROM dance full outer join tennis On dance.scode=tennis.scode

14 A G C The Exclusive Join LeftRight SELECT * FROM dance full outer join tennis On dance.scode=tennis.scode Where dance.scode is.null. Or tennis.scode is.null.

15 Court1 Court2 3:30 – 4:00 Session A 4:00 – 4:30 Session B

16 Keys for Sessions: udate+session

17 Using Plausible Keys To link The tables together Keys for Sessions: udate+session court1____ JOIN court2 ON court1.udate=court2.udate and court1.session=court2.session …..

18 Using Plausible Keys To link The tables together Keys for Days:udate Group By court1____ JOIN court2 ON court1.udate=court2.udate session …..


Download ppt "The Inner Join and Outer Joins Dec 15 2004. B,D,F A G C Dancing and Tennis Dancing only Tennis Only The Whole Picture."

Similar presentations


Ads by Google