pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Fredrik Wendt <fredrik@csbnet.se>
Cc: pgsql-sql@postgresql.org
Subject: Re: ORDER BY TIMESTAMP_column ASC, NULL first
Date: Sun, 15 Feb 2004 12:01:38 -0800 (PST)
Message-ID: <20040215115858.E88869@megazone.bigpanda.com> (raw)
In-Reply-To: <20040212100626.GA21864@csbnet.se>
References: <20040212100626.GA21864@csbnet.se>


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.



view thread (6+ messages)  latest in thread

Message-ID: <20040215115858.E88869@megazone.bigpanda.com>
Permalink:  ../20040215115858.E88869@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20040215115858.E88869@megazone.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, fredrik@csbnet.se
  Subject: Re: ORDER BY TIMESTAMP_column ASC, NULL first
  In-Reply-To: <20040215115858.E88869@megazone.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox