From: Jerome Alet <alet@unice.fr>
To: Antti Linno <alligator@all.ee>
Cc: pgsql-sql@postgresql.org
Subject: Re: GROUP by finish&&last day of month
Date: Wed, 5 Jul 2000 14:46:51 +0200 (MET DST)
Message-ID: <Pine.LNX.3.96.1000705144245.22744B-100000@cortex.unice.fr> (raw)
In-Reply-To: <Pine.LNX.4.04.10007051528140.13491-100000@all.ee>
On Wed, 5 Jul 2000, Antti Linno wrote:
> New question, how to get the last day of month(order data by last day of
> month).
I'm sorry but I don't understand how you could order something by a value
(last day of month).
you can only order things by a field (e.g. a date field) or fields, in
increasing or decreasing order.
e.g.:
you can do:
SELECT id,eventdate FROM mytable ORDER BY eventdate DESC;
and not:
SELECT id,eventdate FROM mytable ORDER BY '2000-01-31' DESC;
the latter one doesn't mean anything to me, nor to SQL I suppose.
bye,
Jerome ALET - alet@unice.fr - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: alet@unice.fr, alligator@all.ee
Subject: Re: GROUP by finish&&last day of month
In-Reply-To: <Pine.LNX.3.96.1000705144245.22744B-100000@cortex.unice.fr>
References: <Pine.LNX.4.04.10007051528140.13491-100000@all.ee> <Pine.LNX.3.96.1000705144245.22744B-100000@cortex.unice.fr>
* 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