We can get the same result in both these ways..
Table_1 LEFT OUTER JOIN Table_2
Table_2 RIGHT OUTER JOIN Table_1
If we can get the same result why to use right outer join ? Which one is better ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As others have pointed out already
LEFT OUTER JOINandRIGHT OUTER JOINare exactly the same operation, except with their arguments reversed. Your question is like asking whether it is better to writea < borb > a. They’re the same – it’s just a matter of preference.Having said that, I find that most people are more familiar with
LEFT JOINand use it consistently in their SQL. Some people even find it quite difficult to read if there is suddenly aRIGHT JOINin the middle of a query, and it causes them to have to stop and think what it means. So I’d suggest that given an equal choice between the two options, prefer to useLEFT JOIN. Being consistent will make it easier for other developers to understand your SQL.