pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ogjunk-pgjedan@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Order by YYYY MM DD in reverse chrono order trouble
Date: Thu, 22 Apr 2004 09:01:20 -0400
Message-ID: <25337.1082638880@sss.pgh.pa.us> (raw)
In-Reply-To: <20040422095648.88816.qmail@web12706.mail.yahoo.com>
References: <20040422095648.88816.qmail@web12706.mail.yahoo.com>

<ogjunk-pgjedan@yahoo.com> writes:
> I'd love to be able to do that, but I cannot just ORDER BY uu.add_date,
> because I do not have uu.add_date in the SELECT part of the statement. 

Sure you can.  Back around SQL89 there was a restriction that ORDER BY
values had to appear in the SELECT list as well, but no modern database
has such a restriction anymore ...

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <25337.1082638880@sss.pgh.pa.us>
Permalink:  ../25337.1082638880@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25337.1082638880@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ogjunk-pgjedan@yahoo.com
  Subject: Re: Order by YYYY MM DD in reverse chrono order trouble
  In-Reply-To: <25337.1082638880@sss.pgh.pa.us>

* 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