i have MySQL db that contains event's date and 3 ranges, i.e from1-to1, from2-to2, from3-to3
each range has different price, i.e from1-to1 rate1 , from2-to2 rate2, ...
so that's 3 columns for each range: from, to and rate.
i'm trying to find the query that returns the rate for a given month, meaning finds the range that the month is in and returns the rate of that range.
any ideas?
thanks!