What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN?

Lion King picture Lion King · Apr 18, 2011 · Viewed 1.6M times · Source

What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN in MySQL?

Answer

Pranay Rana picture Pranay Rana · May 31, 2011

Reading this original article on The Code Project will help you a lot: Visual Representation of SQL Joins.

alt text

Also check this post: SQL SERVER – Better Performance – LEFT JOIN or NOT IN?.

Find original one at: Difference between JOIN and OUTER JOIN in MySQL.