Re: Window function trouble

From: Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Window function trouble
Date: 2009-12-10 17:49:57
Message-ID: pu7hsuafcq.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

In article <pud42mahnr(dot)fsf(at)srv(dot)protecting(dot)net>,
Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com> writes:

> The other users for one address are gone. Does anyone know why?

Update: they are not gone, but they've moved to the end of the result
set. Apparently the CASE expression is named "adr" unless named
otherwise, and the result set is sorted by this expression instead of
the column named "adr". Does anyone know what the SQL standard says
about that?

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2009-12-10 18:09:19 Re: Window function trouble
Previous Message Harald Fuchs 2009-12-10 17:00:08 Window function trouble