Your Name
2007-01-26 01:43:46 UTC
I have an SQL problem I have been struggling with. Given birthdates
stored in a date format, I want to be able to pull out all those whose
birthday is between today and a week from now. This is quite tricky,
unless I'm missing something, because I somehow have to drop the year
and compare the month and day only which could span into the next month
or even next year. But I studied the date/time functions and not even a
combinations of functions seems to do the trick. I've pretty much given
up except for this post. If someone could offer some clever code to do
this, it would make my week!
Thanks for the help in advance.
Mark
stored in a date format, I want to be able to pull out all those whose
birthday is between today and a week from now. This is quite tricky,
unless I'm missing something, because I somehow have to drop the year
and compare the month and day only which could span into the next month
or even next year. But I studied the date/time functions and not even a
combinations of functions seems to do the trick. I've pretty much given
up except for this post. If someone could offer some clever code to do
this, it would make my week!
Thanks for the help in advance.
Mark