I'm currently rewriting an interview scheduleing CGI as part of my company's placement service. The orginal scripts kept information in a flattext database, which I'm now moving into MySQL. Interviews are scheduled during my company's annual meetings, so there are a limited number of time periods when interviews actually take place.

Each (potential) employee and employeer submit the times they are available for an interview. In the orginal scripts, these were stored like this:

Tuesday, 8:00 am Tuesday, 8:30 am Tuesday, 9:00 am . . . Tuesday, 4:30 pm

For each time period, a '1' is stored if the employee/employeer is available at that time, or '0' if they aren't. Our own staff then matches up a time when a prospective employee or employeer can do an interview, at which point that time period is marked with who they are interviewing with. To me, this seems like a lot of wasted space.

Is there another way of structuring the database? Any replacment structure should have the same time scale (every half hour, from 8:00 AM to 4:30 PM, Tuesday and Wednsday) and be able to mark times as "available", "unavailable", or "scheduled". If "scheduled", it needs to point to who they are scheduled with.


In reply to Interview scheduleing in a database by hardburn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.