JOINs
Last updated
Last updated
By using joins, you can retrieve data from two or more tables based on logical relationships between the tables.
Joins can be applied not only to tables, but also to other table-like objects. You can join:
A table.
A view (materialized or non-materialized).
An expression that evaluates to the equivalent of a table (containing one or more columns and zero or more rows). For example:
The result set returned by a table function.
The result set returned by a subquery that returns a table.
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.