Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Unanswered: Database Structure

    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.

    Thanks,
    Andy

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    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).
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •