Download presentation
Presentation is loading. Please wait.
Published byEstella Bryan Modified over 8 years ago
1
The Inner Join and Outer Joins Dec 15 2004
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 …..
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.