JOINs

By using joins, you can retrieve data from two or more tables based on logical relationships between the tables.

FROM first_table < join_type > second_table [ ON ( join_condition ) ]

Joins can be applied not only to tables, but also to other table-like objects. You can join:

Types of Joins
FULL OUTER JOIN with WHERE A.Key IS NULL OR B.Key IS NULL
circle-info
  • In cases, where the join cannot find matching rows from either table, the results from that table will have NULL value as their attribute.

  • Inner joins can be specified in either the FROM or WHERE clauses.

  • Equi Join and Non-Equi Joins are types of Inner Joins.

  • Outer joins and Cross joins can be specified in the FROM clause only.

Last updated