left join and left outerjoin
At the top level there are mainly 3 types of joins:
- INNER
- OUTER
- CROSS
- INNER JOIN - fetches data if present in both the tables.
- OUTER JOIN are of 3 types:
LEFT OUTER JOIN
- fetches data if present in the left table.
RIGHT OUTER JOIN
- fetches data if present in the right table.
FULL OUTER JOIN
- fetches data if present in either of the two tables.
- CROSS JOIN, as the name suggests, does
[n X m]
that joins everything to everything.
Similar to scenario where we simply lists the tables for joining (in the FROM
clause of the SELECT
statement), using commas to separate them.
No comments:
Post a Comment