Re: ORDER BY TIMESTAMP_column ASC, NULL first

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Fredrik Wendt <fredrik(at)csbnet(dot)se>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: ORDER BY TIMESTAMP_column ASC, NULL first
Date: 2004-02-15 19:02:49
Message-ID: 1076871769.10896.140.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 2004-02-12 at 05:06, Fredrik Wendt wrote:
> Hi!
>
> I read posts telling me that NULL values are considered greater than
> non-null values. Fine. Is there a way to explicitly reverse this?

ORDER BY column IS NOT NULL, column ASC;

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2004-02-15 19:36:45 Re: Function
Previous Message Dana Hudes 2004-02-15 18:44:46 Re: bytea or blobs?