yes. Just switch the table positions and use LEFT JOIN instead of RIGHT JOIN and you get the same result. Even from performance standpoint there should be no difference. We do not really need a RIGHT JOIN.
Interviews4 answers
Can you achieve the same result as LEFT JOIN by using RIGHT JOIN?
4 Answers
Rajeev KumarPosted Mar 17, 2023, 5:50 AM EDT
Yes , we can reverse the table to achive the same
Murali KrishnanPosted May 20, 2021, 11:47 PM EDT
Yes and No.
Why Yes?
If records are well-managed and no null records found in both left and right table, we can replace left join with right one.
If we swap left and right tables, then we can replace left join with right join.
Why No?
Obviously we can’t replace, else why we have 2 joins.
In case of tables with null or not normalized records, we can replace left join with right join, it would end up with different result set.
Kiran MohantyPosted Mar 8, 2021, 5:44 AM EST
Ya we can We can exchange table nameAnd use right join.
satish kumathalliPosted Mar 8, 2021, 3:38 AM EST



