I have two dates in my subscription table (start_date and end_date). I want to find out if the user is subscribed in the specified month or not? For ex: start_date=11/20/2011 and end_date=03/10/2012. I want to know all users who are subscribed in the month of Feb-2012 (02/2012).
Thank you.
Not sure if I understand, because other answers are “so” complicated, but as long as you only need to know if sbdy is subscribed within a month I would do this in a simple way:
Just remember to put a first day of month within CONVERT function.