From: | "tjk(at)tksoft(dot)com" <tjk(at)tksoft(dot)com> |
---|---|
To: | alligator(at)all(dot)ee (Antti Linno) |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: GROUP by finish&&last day of month |
Date: | 2000-07-05 13:00:35 |
Message-ID: | 200007051300.GAA30177@uno.tksoft.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Not quite sure what you mean, but how about this:
select date_part('day', 'Jul 01 00:00:00 2000 PDT'::datetime-1);
You must specify Jul for June, i.e. always the following month.
You could get around that too, but since I don't know why you
need to do what you asked, I'll leave it at this.
Troy
>
> Ok, if I want to get non-aggregat data in groups, I use order by. This
> group by seemed so logical though, but the fruit that u can't have, is
> usually the most sweet.
>
> New question, how to get the last day of month(order data by last day of
> month). And to prevent chain letter from misunderstanding, no I don't
> intend to look it up from calendar and then input it manually.
>
> A.
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 2000-07-05 14:34:40 | Re: Problem with joins |
Previous Message | Antti Linno | 2000-07-05 12:55:24 | Aww, sorry (last day of month) |