Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: Fastest way...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 4046 of 4355
Post > Topic >>

Re: Fastest way / best practice to calculate "next birthdays"

by Hannes Dorbath <light@[EMAIL PROTECTED] > May 4, 2008 at 07:50 PM

Joshua D. Drake wrote:
> postgres=# SELECT current_date|| ' a ' || to_char(current_date, 'Day'),
> current_date + '1 Year'::interval || ' a '  || to_char(current_date + '1

> Year'::interval, 'Day') as next_birthday;
>         ?column?        |          next_birthday
> ------------------------+---------------------------------
>  2008-05-04 a Sunday    | 2009-05-04 00:00:00 a Monday
> 
> ?

Sorry, I think I phrased the question badly. What I'm after basically is:

http://www.depesz.com/index.php/2007/10/26/who-has-birthday-tomorrow/


-- 
Best regards,
Hannes Dorbath
 




 5 Posts in Topic:
Fastest way / best practice to calculate "next birthdays"
Hannes Dorbath <light@  2008-05-04 14:29:58 
Re: Fastest way / best practice to calculate "next birthdays"
jd@[EMAIL PROTECTED] (&q  2008-05-04 09:11:34 
Re: Fastest way / best practice to calculate "next birthdays"
Hannes Dorbath <light@  2008-05-04 19:50:37 
Re: Fastest way / best practice to calculate "next birthdays"
zb@[EMAIL PROTECTED] (Zo  2008-05-04 21:05:21 
Re: Fastest way / best practice to calculate "next birthdays"
pgsql@[EMAIL PROTECTED]   2008-05-05 15:11:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 4:06:18 CDT 2008.