Re: BirthDay SQL Issue - Mailing list pgsql-sql

From Andreas Kretschmer
Subject Re: BirthDay SQL Issue
Date
Msg-id 20051005151226.GA2744@kaufbach.delug.de
Whole thread Raw
In response to BirthDay SQL Issue  (brett <bhalligan@yahoo.com>)
List pgsql-sql
brett <bhalligan@yahoo.com> schrieb:

> Hi there
> 
> This is my first posting here, please forgive me if I make any
> mistakes here.
> 
> Ok 
> 
> I have the structure 
> 
> {CLIENTS} = Client ID, First Name, Surname, DOB, Address, Home Phone
> No, Mobile Phone No
> 
> As one relation / table (There are several others in this db that are
> not related to this issue)
> 
> My problem is this
> 
> I need to be able to select two dates on my webby so I have a range of
> dates 

I wrote a function for me similar to your problem. You can visit it:
http://a-kretschmer.de/tools/birthday.sql

Maybe it is useful for you. It need one argument: a integer, and returns
a list of people who has birthday between CURRENT_DATE and this+N days.


Regards, Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-sql by date:

Previous
From: Joost Kraaijeveld
Date:
Subject: Re: Help with simple SQL query?
Next
From: Richard Huxton
Date:
Subject: Re: MOVE in SQL vs PLPGSQL