Reputation: 436
I have a user table with 3 columns say
id name dateOfBirth
where dateOfBirth is of the type DATE. Now I want to find all the people celebrating their birthday in March irrespective of the year they where born. How can it be done.
Upvotes: 1
Views: 864
Reputation: 2117
I think this will be helpful.
SELECT * FROM table WHERE MONTH(date) = 3
Regards.
Upvotes: 2