pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: tgl@sss.pgh.pa.us
Cc: pgsql-sql@postgresql.org
Subject: Re: Bug with ORDER BY expression [ ASC | DESC ] ?
Date: Wed, 22 May 2002 16:01:01 METDST
Message-ID: <200205221401.QAA26812@rodos> (raw)
In-Reply-To: <23760.1022075809@sss.pgh.pa.us>

> 
> Christoph Haller <ch@rodos.fzk.de> writes:
> > select distinct on (o.sid,o.timepoint,o.lid,o.mid) o.sid,o.timepoint,o.lid,o.mid,o.value 
> > from onfvalue o, tempreftime t 
> > where o.sid=t.sid and o.timepoint=t.timepoint and o.lid=t.lid and o.mid=t.mid
> > order by o.sid,o.timepoint,o.lid,o.mid,o.entrancetime desc;
> 
> > but the result is coming in ascending order. 
> 
> Perhaps you meant to say
> 
> order by o.sid desc, o.timepoint desc, o.lid desc, o.mid desc, o.entrancetime desc;
> 
> 
Indeed. Thanks, Christoph 



view thread (3+ messages)  latest in thread

Message-ID: <200205221401.QAA26812@rodos>
Permalink:  ../200205221401.QAA26812@rodos/
Also on:    postgresql.org/message-id/200205221401.QAA26812@rodos

 · 

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: ch@rodos.fzk.de, tgl@sss.pgh.pa.us
  Subject: Re: Bug with ORDER BY expression [ ASC | DESC ] ?
  In-Reply-To: <200205221401.QAA26812@rodos>

* 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