Harry Broomhall <harry.broomhall@uk.easynet.net> writes:
> I'm not entirely sure how I would do this, as the 'lookup' is actualy
> a join. I thought that the order of nameing the joined tables didn't
> matter (except for 'left' and 'right'), similar to the fact that 1 + 2 is
> the same as 2 + 1.
Outer joins are commutative (1+2 == 2+1) at least barring the left/right
issue. But they are not associative. (1+2)+3 != 1+(2+3).
There are cases where the optimizer could prove a particular set of joins
could be reordered this way, but it doesn't know how to do that currently.
--
greg