SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    May 2012
    Posts
    996
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Need help in designing

    Hi , I am designing database for simple voting system.but i am confuse if this is correct...and also is my design for the tables are properly normalize?

    These are the tables.

    Code:
    position_tbl
    p_id                       autoincrement
    p_desc
    Code:
    candidates master 
    c_id                                      auto_increment
    c_p_id
    c_name                                  
    c_lastname
    c_age
    Code:
    voting_tbl
    c_id
    vote_count

    Thank you in advance.

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,015
    Mentioned
    53 Post(s)
    Tagged
    2 Thread(s)
    can a single person be a candidate for more than one position? if so, you gots problems with this design
    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Guru
    Join Date
    May 2012
    Posts
    996
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi r937,

    No, only one position each person.


Bookmarks

Posting Permissions

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