Re: Sort by foreign date column - Mailing list pgsql-general

From Mike Mascari
Subject Re: Sort by foreign date column
Date
Msg-id 3B8226D8.146DBFD7@mascari.com
Whole thread Raw
In response to Re: Sort by foreign date column  ("omid omoomi" <oomoomi@hotmail.com>)
List 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@mascari.com

pgsql-general by date:

Previous
From: "omid omoomi"
Date:
Subject: Re: Sort by foreign date column
Next
From: "Jim Buttafuoco"
Date:
Subject: Re: Is it possible to work with big databases (up to 10Gb) under Postgres?