Re: ORDER BY TIMESTAMP_column ASC, NULL first

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
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 20:11:21
Message-ID: 402FD269.3030102@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dnia 2004-02-12 11:06, Użytkownik Fredrik Wendt napisał:

> 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?

Sure, choose combination you need:

order by some_value is null asc/desc, some_value asc/desc

Regards,
Tomasz Myrta

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-02-15 21:21:03 Re: returning multiple resultset?
Previous Message Stephan Szabo 2004-02-15 20:03:47 Re: max timestamp