From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Stark <gsstark(at)mit(dot)edu> |
Cc: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>, "Correia, Carla" <Carla(dot)Correia(at)logicacmg(dot)com>, "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Complex outer joins? |
Date: | 2003-03-27 06:18:19 |
Message-ID: | 9388.1048745899@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Greg Stark <gsstark(at)mit(dot)edu> writes:
> Yeah, that's not a particularly enlightening case because if you convert the
> right joins to left joins you see that these aren't actually similar queries
> at all.
> the first is
> "C left join (G left join L)"
> and the second is
> "G left join (C left join L)"
> They only look similar superficially when written using right joins but
> they're actually totally different structures.
Yup, you're quite right. What's bothering me is that AFAICS they are
extremely similar in the Oracle notation too: put the (*) on the other
side of one of the equality clauses, and you convert one case to the
other. So how can you assert that Oracle's notation is not sensitive
to join order?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-03-27 06:22:32 | Re: Database not restarting |
Previous Message | Stephan Szabo | 2003-03-27 05:36:09 | Re: Complex outer joins? |