From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: BirthDay SQL Issue
Date: Wed, 5 Oct 2005 17:12:26 +0200
Message-ID: <20051005151226.GA2744@kaufbach.delug.de> (raw)
In-Reply-To: <ji3uj1lqok26mll7bugc8rhpqk56s45m6j@4ax.com>
References: <ji3uj1lqok26mll7bugc8rhpqk56s45m6j@4ax.com>
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°
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: akretschmer@spamfence.net
Subject: Re: BirthDay SQL Issue
In-Reply-To: <20051005151226.GA2744@kaufbach.delug.de>
* 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