pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Pilosov <alex@pilosoft.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL Date Challenge
Date: Mon, 4 Jun 2001 16:56:34 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10106041653210.2255-100000@spider.pilosoft.com> (raw)
In-Reply-To: <web-66922@davinci.ethosmedia.com>

On Mon, 4 Jun 2001, Josh Berkus wrote:

> 
> 	This doesn't solve my problem, as the suggestion above presupposes that
> I have a temp table of all possible dates in the range, or
Yes, you must have such a table, or you have to iterate over existing
table.

> misunderstands that I am trying to find all Wednesdays in column x.
> 
> 	I am trying to list all Wednesdays that are *not* in column x.  
> 
> 	This requires me to build a list of all possible Wednesdays (within a
> date range), preferably *without* first having a table of all dates in
> existance!  Some sort of manipulation of the date processor should be
> possible, shouldn't it?

No. Same reason why you cannot write a select returning all values from 1
to 1000. You must have table to iterate over. 

When stored procedures are able to return sets (they do, but halfway: C
ones can, but no other language supports that), you may have it a bit
easier...




view thread (9+ messages)  latest in thread

Message-ID: <Pine.BSO.4.10.10106041653210.2255-100000@spider.pilosoft.com>
Permalink:  ../Pine.BSO.4.10.10106041653210.2255-100000@spider.pilosoft.com/
Also on:    postgresql.org/message-id/Pine.BSO.4.10.10106041653210.2255-100000@spider.pilosoft.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: alex@pilosoft.com, josh@agliodbs.com
  Subject: Re: SQL Date Challenge
  In-Reply-To: <Pine.BSO.4.10.10106041653210.2255-100000@spider.pilosoft.com>
  References: <web-66922@davinci.ethosmedia.com> <Pine.BSO.4.10.10106041653210.2255-100000@spider.pilosoft.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