Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: rewriting L...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 3144 of 3234
Post > Topic >>

Re: rewriting LEFT JOINs as RIGHT JOINs

by "David Cressey" <cressey73@[EMAIL PROTECTED] > Apr 24, 2008 at 11:43 AM

"Roy Hann" <specially@[EMAIL PROTECTED]
> wrote in message
news:F5qdnekzTLVO9Y3VnZ2dnUVZ8t-nnZ2d@[EMAIL PROTECTED]
> "Harry Skelton" <skelton.harry@[EMAIL PROTECTED]
> wrote in message
> news:480a17e5$0$22078$6e1ede2f@[EMAIL PROTECTED]
> > yawnmoth wrote:
> >> Out of curiosity, can every LEFT JOIN be rewritten as a query with
> >> RIGHT JOINs?  It seems to me that if you just take the "leftmost"
> >> table and use that in the FROM part of a SELECT that all subsequent
> >> LEFT JOINs would need to be RIGHT JOINs...
> >
> > LEFT and RIGHT joins dictate precedence of the tables/queries.  You
could
> > do it either way, but what data you get back will be different. If you
do
> > as you say, it is not merely changing the LEFT to a RIGHT, you are
> > changing the entire SQL query.  This can cause unforeseen problems,
[...]
> > are actually returned.
>
> Total nonsense.

How about making some sense out of it, Roy?

Here my two cents:
It's not clear to me that the OP understands that  A LEFT JOIN B is
equivalent to B RIGHT JOIN A...  But if the OP does understand that,  then
obviously (s)he means more than just changing  every LEFT JOIN to a RIGHT
JOIN.
 




 6 Posts in Topic:
rewriting LEFT JOINs as RIGHT JOINs
yawnmoth <terra1024@[E  2008-04-19 07:10:48 
Re: rewriting LEFT JOINs as RIGHT JOINs
Harry Skelton <skelton  2008-04-19 12:03:50 
Re: rewriting LEFT JOINs as RIGHT JOINs
"Roy Hann" <  2008-04-24 12:02:39 
Re: rewriting LEFT JOINs as RIGHT JOINs
"David Cressey"  2008-04-24 11:43:57 
Re: rewriting LEFT JOINs as RIGHT JOINs
"Roy Hann" <  2008-04-25 06:03:54 
Re: rewriting LEFT JOINs as RIGHT JOINs
--CELKO-- <jcelko212@[  2008-04-22 13:13:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 17:28:37 CDT 2008.