G'day all

This is one of the many reasons I visit this site and community, they are damn good and pleased to assist. Thanks once again!

The current set up of the database is as follows:

1 table of a mySQL database. (each line is a column)
item_no (the number of the poll in the database) date_begun (the date the vote was added) date_ended (the date the poll stopped) begun_by (the username of the person who created the poll) description (the text above the vote) option_1_t -> option_6_t (6 columns containing the text of the vote op +tion) option_1_n -> option_6_n (6 columns containing the numbers attached to + vote options)
This is the current layout of the database...

As you've probably guesses, I'm fairly new to DBI and perl in general, so any pointers and documentation recommendations gratefully accepted!

How could the database be better designed ?

Thanks again
lagrenouille

In reply to Database Design by lagrenouille
in thread Reading data from mySQL into hashes and manipulation of hashes by lagrenouille

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.