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

Поиск
Список
Период
Сортировка
От Hannes Dorbath
Тема Re: Fastest way / best practice to calculate "next birthdays"
Дата
Msg-id 481DF76D.3060807@theendofthetunnel.de
обсуждение исходный текст
Ответ на Re: Fastest way / best practice to calculate "next birthdays"  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: Fastest way / best practice to calculate "next birthdays"  (Zoltan Boszormenyi <zb@cybertec.at>)
Re: Fastest way / best practice to calculate "next birthdays"  (Shane Ambler <pgsql@Sheeky.Biz>)
Список pgsql-performance
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

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Fastest way / best practice to calculate "next birthdays"
Следующее
От: Zoltan Boszormenyi
Дата:
Сообщение: Re: Fastest way / best practice to calculate "next birthdays"