SQL Joins
SQL: JOINS This SQL tutorial explains how to use SQL joins with syntax, visual illustrations, and examples. DESCRIPTION SQL JOINS are used to retrieve data from multiple tables. A SQL JOIN is performed whenever two or more tables are joined in a SQL statement. There are 4 different types of SQL joins: SQL INNER JOIN (or sometimes called simple join) SQL LEFT OUTER JOIN (or sometimes called LEFT JOIN) SQL RIGHT OUTER JOIN (or sometimes called RIGHT JOIN) SQL FULL OUTER JOIN (or sometimes called FULL JOIN) So let's discuss SQL JOIN syntax, look at visual illustrations of SQL JOINS, and explore SQL JOIN examples. SQL INNER JOIN (SIMPLE JOIN) Chances are, you've already written a SQL statement that uses an SQL INNER JOIN. It is the most common type of SQL join. SQL INNER JOINS return all rows from multiple tables where the join condition is met. Syntax The syntax for the SQL INNER JOIN is: SELECT columns FROM table1 ...