How do I change sort order behavious with nulls

From: charlie clark <charlie(at)begeistert(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: How do I change sort order behavious with nulls
Date: 2005-02-19 17:04:32
Message-ID: opsmge1uvryt02yl@mail.isis.de
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear list,

is there a simple way to change the way ORDER BY works on columns with
NULLs? I can understand the need for default behaviour but there must be
cases when this is undesirable. I have such a query with the NULLs arising
as the result of an OUTER JOIN and I would like to ORDER BY DESC with
NULLs treated as <= 0. I've already tried a few things but nothing's
working so far.

Thanx for any pointers.

Charlie

--
Charlie Clark

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2005-02-19 17:04:42 Re: Group By and wildcards...
Previous Message Matthew T. O'Connor 2005-02-19 16:40:35 Re: PostgreSQL scaleability question