Different Types of SQL JOINs

Here are the different types of the JOINs in SQL:

SQL INNER JOIN   SQL LEFT JOIN   SQL RIGHT JOIN   SQL FULL OUTER JOIN


SELECT [ ALL | DISTINCT | DISTINCTROW ] expressions

  FROM  table1, table2 ,table3 ...

1.  WHERE table1.primary_key = table2.foreign_key

2. WHERE table1.primary_key = table2.foreign_key