pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Chandler <alan@chandlerfamily.org.uk>
To: pgsql-sql@postgresql.org
Subject: Re: Another orderby problem
Date: Sat, 14 Jan 2006 14:28:00 +0000
Message-ID: <200601141428.00319.alan@chandlerfamily.org.uk> (raw)
In-Reply-To: <20060114130902.GA6278@webserv.wug-glas.de>
References: <200601141302.49630.alan@chandlerfamily.org.uk>
	<20060114130902.GA6278@webserv.wug-glas.de>

On Saturday 14 January 2006 13:09, A. Kretschmer wrote:
> am  14.01.2006, um 13:02:48 +0000 mailte Alan Chandler folgendes:
> > select name, id, transaction.date as tdate, description, amount
> > from account join transaction on name=dst where name ='Sarah'
> > order by tdate asc;
> >
> >  name  | id |   tdate    |        description        | amount
> > -------+----+------------+---------------------------+--------
> >  Sarah | 12 | 0005-06-05 | Ben 21st Birthday Pressie |     41
> >  Sarah | 13 | 0005-06-05 | Cash from Mum             |     60
> >  Sarah | 14 | 0005-06-08 | Petrol                    |  27.33
> >  Sarah | 15 | 0005-06-10 | Petrol Allowance          |    -40
> >  Sarah | 11 | 2005-06-05 | Sarah Petrol              |  27.74
> > (5 rows)
> >
> > I can't figure out why the dates are not in order (see transaction 11 is
> > out of place).
>
> '0005-06-10' < '2005-06-05'. Perhaps you have a wrong year.

Thanks

Its amazing how long you can stare at something and not see the obvious.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.



view thread (4+ messages)

Message-ID: <200601141428.00319.alan@chandlerfamily.org.uk>
Permalink:  ../200601141428.00319.alan@chandlerfamily.org.uk/
Also on:    postgresql.org/message-id/200601141428.00319.alan@chandlerfamily.org.uk

 · 

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: alan@chandlerfamily.org.uk
  Subject: Re: Another orderby problem
  In-Reply-To: <200601141428.00319.alan@chandlerfamily.org.uk>

* 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