Different types of joins
The different types of joins are described below:- Left join: take all rows from the left table and match with the right table; right table columns could be NULL in join.
- Right join: take all rows from the right table and match with the left table; left table columns could be NULL in join.
- Inner join: take only rows that match on both sides; not all rows if left table and not all rows from right table will be included.
- Outer join: combine every row from the left table with every row from the right table; if there are 5 rows left and 3 rows right, there will be 5 x 3 = 15 rows in the result
