[SQL] ORDER BY does not work as expected with multiple joins

2006-01-13 Thread Adam Rosi-Kessel
I posted this message once through the Google Groups interface to pgsql.sql, but I've received no replies and the message doesn't appear at all in the MHonArc archives at postgresql.org, so I'm not sure it actually was distributed to this list. Apologies if this is a duplicate: I have a multijoin

Re: [SQL] ORDER BY does not work as expected with multiple joins

2006-01-13 Thread Adam Rosi-Kessel
Tom Lane wrote: > Adam Rosi-Kessel <[EMAIL PROTECTED]> writes: >> I have a multijoin SELECT statement where the ORDER BY clause doesn't >> seem to be working. > You haven't mentioned your Postgres version, nor provided anywhere near > enough information to l

Re: [SQL] ORDER BY does not work as expected with multiple joins

2006-01-13 Thread Adam Rosi-Kessel
Thanks for your helpful response. Michael Glaesemann wrote: > I don't seem to have a problem with the ordering given your data. I'm > not sure why you're doing right and left joins, though. You might want > to use left joins if you have NULL id1 or id2, but otherwise just plain > JOIN should work