7.4, 'group by' default ordering?

From: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
To: pgsql-general(at)postgresql(dot)org (pgsql general list)
Subject: 7.4, 'group by' default ordering?
Date: 2004-01-08 19:42:33
Message-ID: 200401081942.i08JgXZG007236@gw.tssi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I notice that 7.4 doesn't do default ordering on a 'group by', so you have
to throw in an 'order by' clause to get the output in ascending group order.

Is this something that most RDB's have historically done (including PG prior
to 7.4) but isn't really part of the SQL standard?

On a mostly unrelated topic, does the SQL standard indicate whether NULL
should sort to the front or the back? Is there a way to force it to
one or the other independent of whether the order by clause uses ascending or
descending order?
--
Mike Nolan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holger Marzen 2004-01-08 20:04:35 Re: Compile problem on old Debian Linux with glibc 2.0.7
Previous Message Mike Nolan 2004-01-08 19:36:56 Re: order by is ambiguous