Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Left Vs Right Joins

Author  Topic 

DavidChel
Constraint Violating Yak Guru

474 Posts

Posted - 2009-01-14 : 15:20:37
I can't for the life of me find where I read this, but I remember an article about Left Joins being faster in SQL Server than Right Joins.

I found nothing on Google. Anyone know where I can find a credible reference to this?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-01-14 : 15:23:53
I don't believe this. It depends on indexing strategy,size of tables.
Go to Top of Page

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2009-01-14 : 16:05:13
no, But I read somewhere that there was an issue with earlier release of 2005 where right join wouldn't always give right results.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-01-14 : 17:57:55
quote:
Originally posted by sakets_2000

no, But I read somewhere that there was an issue with earlier release of 2005 where right join wouldn't always give right results.



Can you provide document or Microsoft KB article?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-14 : 17:59:53
They are equivalent, just depends on which order you put the tables in.

See Jeff's blog on why never to use RIGHT JOINs though, but it's a preference thing: http://weblogs.sqlteam.com/jeffs/archive/2008/02/13/on-right-outer-joins.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -