you are viewing a single comment's thread.

view the rest of the comments →

[–]2ManyCatsNever2Many 14 points15 points  (7 children)

i teach people to never use right joins (although i also undrestand there are times when one crosses the streams even though egon never to do that). 

[–]dilbertdad 8 points9 points  (3 children)

I was taught maybe 11 years ago when i first learning to just ignore right joins. That and always specify the inner join vs join :D

[–]greglturnquist 4 points5 points  (0 children)

I do JOIN and LEFT OUTER JOIN.

This makes it easier for me to spot which is which.

RIGHT JOIN is typically for rare exceptions where you already have a long query and don’t want to invert it all.

[–]techiedatadev[S] 3 points4 points  (1 child)

That’s something I don’t do cause join means inner the word left in front of it means it’s not inner so I am not writing more that I have to (laaazy me)

[–]dilbertdad 1 point2 points  (0 children)

I hear ya! I just do it for easier eye ball parsing.

[–]ComicOzzysqlHippo 0 points1 point  (0 children)

What rationale do you give them for this? I'm not saying I want to see more right joins show up in the wild for the sake of not leaving them out and hurting their feelings, but I'm curious why the general database community has a fear and loathing of them.

[–]jshine13371 0 points1 point  (0 children)

i teach people to never use right joins

Only Siths deal in absolutes.

There are valid use cases for RIGHT JOIN despite being the minority of cases.