Hi, I have a doubt when coding ON and WHERE clause for Joins (Inner Vs Outer).
I think, for an Inner Join its does not make a difference whether we apply the condition with ON cluase or WHERE cluase.
Please refer the 2 queries belows-
sel customer_id,customer_name,order_amount
from Customer C
Inner Join Order O
on C.customer_id = O.customer_id
Where O.order_location = 'India';
The above query can also be writen as-
sel customer_id,customer_name,order_amount
from Customer C
Inner Join Order O
on C.customer_id = O.customer_id
AND O.order_location = 'India';
As per my understaning the above 2 queries will produce the same output, Correct me if i am wrong.
Now for Outer Join, I think coding a search condition with ON cluase or with WHERE cluase makes a huge difference. So please let me know what approach to use in case of Outer Joins.
Please let me know where to refer in TD documentaion to get better understading of this.