MULTIPLE JOINS
You can join more than two tables together. First, two tables are joined, then the thd table isjoined tothe result ofthe
aera
yovase
Oe les ss eae
"foysic toy.nane owen as 0
y-48 toy-nane cats STRENNa cat_name mom_td onnertd -«OMMERAS. 01
3 wi —— rr 5 =
pring MULL —— ey i ae
i SS a see? ey
5 ot = NET Histy 1 NULL
Jom 200 Ler Jom 2LEFT ION
sevect seuect
‘toy.nam titoy.name,
! aaa
lane’ Af owver hase Sinane, fa enecinane ccaage Ia /eenerpaae
now toy row toy teow toy
Sam cat € som eet ¢ Leer ani eat ¢
On Gent id = c.catiid Chee nn ate
som owner" Lert Sum suner 6 Lepr 30m" ouner
ow cea OH crounen ta = o-tdy ON cvownerid » 0.14;
a ne
JOIN WITH MULTIPLE CONDITIONS
You can use multiple JOIN conditions using the ON keyword once and the AND keywords as many times as you need.
"eat_ié cat_name momid ownerid age mame age
1 Kitty 5 John ‘Smith 1
2 Hugo a ae Danielle Davis 16
3 som 2
4 Misty 1 NULL a
‘o.name AS owner_name,
coe etree cot_name — owner_name
o.age AS owner_oge
FRow cat ¢
201M owner o
Ds Codehub.py Fr Sure code and Prot