Re: SQL Date Challenge - Mailing list pgsql-sql

From Josh Berkus
Subject Re: SQL Date Challenge
Date
Msg-id web-66922@davinci.ethosmedia.com
Whole thread Raw
In response to Re: SQL Date Challenge  (Manuel Sugawara <masm@fciencias.unam.mx>)
Responses Re: SQL Date Challenge
Re: SQL Date Challenge
List pgsql-sql
Folks,
Thanks for your suggestions.  Apparently I wasn't clear enough about
what I'm trying to do:

> > 
> > SELECT ALL Wednesdays BETWEEN 5/1/01 AND 6/1/01;
> > 
> 
> somthing like:
> 
> select date from xx where to_char(date,'fmdy') = 'wed';
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
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?

-Josh Berkus


______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: SQL Date Challenge
Next
From: Alex Pilosov
Date:
Subject: Re: SQL Date Challenge