in reply to Re: Database Design
in thread Reading data from mySQL into hashes and manipulation of hashes

G'day all

Would you care to elaborate ?

ie. What is a secondary table ?
How is one created ?
How do you link it to the main database ?
Or is it not linked and merely referred to ?

Cheers
lagrenouille

Replies are listed 'Best First'.
Re: Re: Re: Database Design
by CubicSpline (Friar) on Aug 30, 2002 at 19:09 UTC
    What is being suggested by more than one person is to simplify your database by creating another table to your data is more easily obtained. The suggestion given above is a good one and might look like this:

    --------------------------------------------------------- | Table name: polls | --------------------------------------------------------- | poll_no | date_begun | date_ended | begun_by | descrip| --------------------------------------------------------- ------------------------------------------------- | Table name: votes | ------------------------------------------------- | poll_no | option_no | option_text | num_votes | -------------------------------------------------

    Now think about how you'd approach your problem given that you have a more normalized database to work with.

    ~CubicSpline
    "No one tosses a Dwarf!"