Hey,
I have a Members table in my database in which I collect the date of birth for each member. I have been trying to write a MySQL query to retrieve the birthday's for this week from the Members.DateOfBirth field, which is of type datetime.
I have been able to successfully retrieve Member's birthdays for this month using the following query, but can't figure out how to take the query to the "this week" level.
Does anyone know how I could do this?
Here is the query I am using now to retrieve birthdays for this month:
SELECT m.MemberID, m.DateOfBirth FROM coo_db_dbo.members m where month(m.DateOfBirth) = month(curdate())
I have a Members table in my database in which I collect the date of birth for each member. I have been trying to write a MySQL query to retrieve the birthday's for this week from the Members.DateOfBirth field, which is of type datetime.
I have been able to successfully retrieve Member's birthdays for this month using the following query, but can't figure out how to take the query to the "this week" level.
Does anyone know how I could do this?
Here is the query I am using now to retrieve birthdays for this month:
SELECT m.MemberID, m.DateOfBirth FROM coo_db_dbo.members m where month(m.DateOfBirth) = month(curdate())