Nobody Likes Right Join

Nobody Likes Right Join
sql-memes, database-memes, joins-memes, right-join-memes, left-join-memes | ProgrammerHumor.io

RIGHT JOIN is the awkward middle child of SQL joins that nobody invited to the party. Sure, it does the exact same thing as LEFT JOINโ€”just swap the table order and boom, you're done. But nooo, some masochist decided to write it backwards and make everyone's brain hurt.

Why would you ever use RIGHT JOIN when you can just flip the tables in the FROM clause and use LEFT JOIN like a civilized human being? It's like insisting on walking backwards to your destination. Technically possible, functionally identical, but deeply unsettling to witness.

Database developers have collectively agreed that RIGHT JOIN exists purely to confuse junior devs during code reviews. If you see one in production code, either someone's playing 4D chess or they just hate their teammates.

More Like This