I think about my self as quite SQL-savvy person, I used to optimize quite complex queries and is able to read plans for Oracle, Postgres and MySQL. And yet, I've got not idea why would anybody need right join. Have you guys ever had a case when you'd need a right join? I've been to the field for 15 years and yet to see people using right join in the wild. Like the last example in this link - why would you do that? Mo…
I just checked some code, saw 357 left joins and 1 right join.
SELECT p.password, u.id
FROM password p
RIGHT JOIN "user" u ON p.user_id = u.id