Skip to content
Advertisement

Understanding where clause vs join

Can somebody explain the difference between below query examples.

vs

Advertisement

Answer

To answer the question in your comment, with the following tables:

table1 and table2

The inner join queries will produce:

An outer join query including the filter in the on clause will produce:

whereas an outer join query with the filter after the join will produce:

Note that since columna is in both tables, you have to indicate which columna the filter is associated to. I assumed table1’s.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement