I want to know that what is the use of right join exactly as we can get the same result from left join by interchanging the tables.
So let's take an example here -
Suppose i need to join two tables TAB_A and TAB_B with right join as below to get the result -
SELECT * FROM TAB_A RIGHT JOIN TAB_B
but i can also get the same result of query by using left join also instead of right join as below
SELECT * FROM TAB_B LEFT JOIN TAB_A
So my question is what is the purpose of right join in sql exactly, is there any performance related comparision or anything that can not be done by left join?