close
Jump to content

SQL/Join

From Wikiversity
< SQL

An SQL join clause combines records from two or more tables in a database.


Two tables

[edit | edit source]
tblSuit
Suit Color
Image Image
Image Image
Image Image
Image Image
tblLight
Light Color
Image Image
Image Image



Inner join
Image
SELECT * FROM tblSuit
JOIN tblLight ON tblSuit.Color = tblLight.Color
Suit tblSuit.Color Light tblLight.Color
Image Image Image Image
Image Image Image Image



Three tables

[edit | edit source]
ta
ca
va
yooo
te
ce
ve
yooo
tu
cu
vu
yooo