I have an existing database of events. I want to be able to query what events have availability in what months. Can anyone suggest the best structure for this in the database? Should it be one field for each month that can take a 1/0 and then we can query by month?
It's been a while since I worked in MySQL so any advice would be most appreciated.
Your events table should only have records for those dates with events on them.
You can then use a calendar table to find out for your reporting needs (e.g. finding what dates are booked and which are free, etc).