< SQL

SQL/Join

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


Two tables

tblSuit
SuitColor
tblLight
LightColor



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



Three tables

ta
ca
va
yooo
te
ce
ve
yooo
tu
cu
vu
yooo




This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.