pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: greg@turnstep.com
To: pgsql-sql@postgresql.org
Cc: dmitry@openratings.com
Subject: Re: Count dates distinct within an interval
Date: Tue, 15 Jul 2003 15:40:52 -0000
Message-ID: <a71ba711731e88c9d58b295d45048dbe@biglumber.com> (raw)
In-Reply-To: <3F1410CB.9020504@openratings.com>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Also, I could certainly write a simple function, that would get all the 
> entries in order, and scan through them, counting according to my rules...
> But I was hoping to find some way to do this in plain sql though...

In this example, you are best off using a function.

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200307151137

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE/FCAgvJuQZxSWSsgRAg1jAJ9kS9PpIiMkij6TtOg63O59TeezPACgzhMF
ZM/84SEPP4doDR8fsGpnUBU=
=w5Wa
-----END PGP SIGNATURE-----




view thread (5+ messages)  latest in thread

Message-ID: <a71ba711731e88c9d58b295d45048dbe@biglumber.com>
Permalink:  ../a71ba711731e88c9d58b295d45048dbe@biglumber.com/
Also on:    postgresql.org/message-id/a71ba711731e88c9d58b295d45048dbe@biglumber.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: greg@turnstep.com, dmitry@openratings.com
  Subject: Re: Count dates distinct within an interval
  In-Reply-To: <a71ba711731e88c9d58b295d45048dbe@biglumber.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