Reputation: 10063
Can anyone explain what will happen in following scenario?
SELECT *
FROM A,
B
LEFT JOIN C
ON B.FIELD1=C.FIELD1
WHERE A.FIELD1='SOME VALUE'
Here table A and table B are not joined with any condition. So my doubt is what kind of join will be applied between A and B?
Upvotes: 1
Views: 73
Reputation: 1106
Please try it
SELECT * FROM A INNER JOIN B ON A.IDCOLUMND=B.IDCOLUMN LEFT JOIN C ON B.FIELD1=C.FIELD1
Upvotes: 0
Reputation: 2777
A cross join applies, If you don't used a join condition, get irrelavent results also.
Upvotes: 0
Reputation: 78413
A cross join (cartesian product, if you prefer) will be applied between the results of A and B left join C: each row in the first set will be tied to each row in the second set.
Upvotes: 4