pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Travis Hoyt <thoyt@npc.net>
To: pgsql-sql@postgresql.org
Subject: Re: date manipulation
Date: Wed, 03 Apr 2002 13:57:44 -0800
Message-ID: <web-846741@davinci.ethosmedia.com> (raw)
In-Reply-To: <DBEMKMGOMJAGKAKEPPEGAEMEDIAA.thoyt@npc.net>

Travis,

> Curious to know if there's an easy way to do what I'm trying to do.
>   As of
> yet I haven't been able to find any documentation or examples that
>  help.
> I basically want to be able to figure how how many 1st's and 15th's
>  there
> are between date X and Y.  Is there a simple solution?

Please see the Time/Date/Interval FAQ:
http://techdocs.postgresql.org/techdocs/faqdatesintervals.php
and the documentation:
http://www.postgresql.org/idocs/index.php?datatype-datetime.html

Finally, Joe Celko's book "SQL For Smarties" has a question and
 solution very similar to what you ask above.

-Josh Berkus




view thread (7+ messages)

Message-ID: <web-846741@davinci.ethosmedia.com>
Permalink:  ../web-846741@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-846741@davinci.ethosmedia.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: josh@agliodbs.com, thoyt@npc.net
  Subject: Re: date manipulation
  In-Reply-To: <web-846741@davinci.ethosmedia.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