Re: Sort by foreign date column

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: omid omoomi <oomoomi(at)hotmail(dot)com>
Cc: feo(at)ttn(dot)ru, sszabo(at)megazone23(dot)bigpanda(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Sort by foreign date column
Date: 2001-08-21 09:16:08
Message-ID: 3B8226D8.146DBFD7@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

omid omoomi wrote:
>
> and how about this:
>
> SELECT TO_CHAR(chdate, 'DD-MM-YYYY')
> FROM mytable
> ORDER BY chdate::date;

Yes, but Andrey says that the chdate field is declared as a date:

> > > > On Tue, 21 Aug 2001, Andrey Y. Mosienko wrote:
> > > >
> > > > >
> > > > > I have table with date type column:
^^^^
> > > > >
> > > > > chdate date;

so if that is the case, something is broken.

Mike Mascari
mascarm(at)mascari(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Buttafuoco 2001-08-21 11:41:50 Re: Is it possible to work with big databases (up to 10Gb) under Postgres?
Previous Message omid omoomi 2001-08-21 09:05:29 Re: Sort by foreign date column