Re: ORDER BY TIMESTAMP_column ASC, NULL first - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: ORDER BY TIMESTAMP_column ASC, NULL first
Date
Msg-id 20040215115858.E88869@megazone.bigpanda.com
Whole thread Raw
In response to ORDER BY TIMESTAMP_column ASC, NULL first  (Fredrik Wendt <fredrik@csbnet.se>)
List pgsql-sql
On Thu, 12 Feb 2004, Fredrik Wendt wrote:

> I read posts telling me that NULL values are considered greater than
> non-null values. Fine. Is there a way to explicitly reverse this?

Not directly, but I think ORDER BY assignedAt IS NOT NULL, assignedAt ASC
will give the ordering you want at the cost of probably not using an index
on assignedAt.


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: max timestamp
Next
From: Tom Lane
Date:
Subject: Re: Unable to convert date to tm