pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tjk@tksoft.com <tjk@tksoft.com>
To: alligator@all.ee
Cc: pgsql-sql@postgresql.org
Subject: Re: GROUP by finish&&last day of month
Date: Wed, 5 Jul 2000 06:00:35 -0700 (PDT)
Message-ID: <200007051300.GAA30177@uno.tksoft.com> (raw)
In-Reply-To: <Pine.LNX.4.04.10007051528140.13491-100000@all.ee>

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.
> 
> 
> 




view thread (4+ messages)  latest in thread

Message-ID: <200007051300.GAA30177@uno.tksoft.com>
Permalink:  ../200007051300.GAA30177@uno.tksoft.com/
Also on:    postgresql.org/message-id/200007051300.GAA30177@uno.tksoft.com

 · 

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 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: tjk@tksoft.com, alligator@all.ee
  Subject: Re: GROUP by finish&&last day of month
  In-Reply-To: <200007051300.GAA30177@uno.tksoft.com>
  References: <Pine.LNX.4.04.10007051528140.13491-100000@all.ee> <200007051300.GAA30177@uno.tksoft.com>

* 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