Database Design Question

Discussion in 'Software' started by BoeingBen, Jul 6, 2005.

  1. BoeingBen

    BoeingBen Private E-2

    Hi Gang,

    First time post so I hope someone can help me out here.

    I have to design a database for a website that I am doing and I'm not sure what the best way to go about it is.

    This website is all about registering memebers that have occupations and I have to model this.

    So the members have all the normal fields like:

    FirstName
    Surname
    Address
    Gender
    TelephoneNumber
    ...
    ...
    etc

    and they also have Occupations which have these sorta fields:

    Position
    YearsExperience
    CareerStepDecision
    EmploymentBasis (i.e -> Fulltime, parttime, casual)
    EmployerName
    EmployerAddress
    EmployerSuburb
    ...
    ...
    etc


    Now my question is......should I seperate out the Occupation and Members into 2 seperate tables or should I combine them into one table called say tblMembers??

    I'd appreciate any help and/or references.


    Thankyou in advance.



    Ben
     
  2. Tonglebeak

    Tonglebeak Specialist

    Depends. Are they going to manually type in occupations/etc, or will they select from a dropdown box? If the latter, use two tables, give the occupations an id, and just have that id value put in the users table for whatever they select; else, put it all in one table, though that's not efficient.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds