No merging can be done using the CROSS join and the WHERE clause. Each connection cross, internal and external, has its logical meaning.
- Cross joining applies only to one facto Cartesian product.
- The internal connection uses two phases: the Cartesian product and the filter.
- The outer join applies to three phases: the Cartesian product, the filter, and the addition of outer rows.
An obscure aspect of queries containing an OUTER JOIN clause is whether to specify a Boolean expression in an ON file or in a WHERE filter. The main difference between the two is that ON is applied before adding external lines , and WHERE is applied after . Deleting a row from a saved table (specified as a left outer or right outer) using the ON filter is not final, because it will be added back; the exception of a line by the WHERE filter, on the contrary, is final.
This logical difference between ON and WHERE clauses exists only when using an external join. When you use an inner join, it doesnβt matter where you specify your logical expressions in the ON clause with the inner join table statement or in the Where clause with the cross join table statement.
Hope this helps !!!
source share