+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Database Design

  1. #11
    dtz
    dtz is offline
    Barn Regular dtz is an unknown quantity at this point dtz's Avatar
    Join Date
    Feb 2009
    Posts
    96
    Rep Power
    3

    yes sure thanks i have attached the db
    Attached Files

  2. #12
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Alright...give this a shot:
    Code:
    SELECT Members.MemberID, ManagementLevels.Description, Forms.FormType
    FROM ((((Members INNER JOIN ManagementLevels ON Members.LevelID=ManagementLevels.LevelID) INNER JOIN QuestionAnswers ON Members.MemberID=QuestionAnswers.MemberID) INNER JOIN FormQuestion ON QuestionAnswers.QuestionID=FormQuestion.QuestionID) INNER JOIN Forms ON FormQuestion.FormID=Forms.FormID) INNER JOIN FormType ON Forms.FormType=FormType.FormTypeID
    WHERE Members.MemberID=4 And Forms.FormID=1;
    
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #13
    dtz
    dtz is offline
    Barn Regular dtz is an unknown quantity at this point dtz's Avatar
    Join Date
    Feb 2009
    Posts
    96
    Rep Power
    3

    Quote Originally Posted by jmurrayhead View Post
    Alright...give this a shot:
    Code:
    SELECT Members.MemberID, ManagementLevels.Description, Forms.FormType
    FROM ((((Members INNER JOIN ManagementLevels ON Members.LevelID=ManagementLevels.LevelID) INNER JOIN QuestionAnswers ON Members.MemberID=QuestionAnswers.MemberID) INNER JOIN FormQuestion ON QuestionAnswers.QuestionID=FormQuestion.QuestionID) INNER JOIN Forms ON FormQuestion.FormID=Forms.FormID) INNER JOIN FormType ON Forms.FormType=FormType.FormTypeID
    WHERE Members.MemberID=4 And Forms.FormID=1;
    
    Hi jmurrayhead,
    sorry to be a pain, iam still doing the database and trying to understand it, sorry i am new to it, thought if you could guide me please, the question for the form is pre determined and i was wondering in which table does the answer goes to once the user fill in the form please?does that mean each question have a specific field?Thankss a lot

  4. #14
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Quote Originally Posted by dtz View Post
    Hi jmurrayhead,
    sorry to be a pain, iam still doing the database and trying to understand it, sorry i am new to it, thought if you could guide me please, the question for the form is pre determined and i was wondering in which table does the answer goes to once the user fill in the form please?does that mean each question have a specific field?Thankss a lot
    The questions are stored in FormQuestions table. The response from the user is stored in the QuestionAnswers table, where the MemberID of the person submitting, the QuestionID of the question they are responding to, and the actual response are stored.

    Each answer to each question is a separate record (as it should be). Does that make sense?
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  5. #15
    dtz
    dtz is offline
    Barn Regular dtz is an unknown quantity at this point dtz's Avatar
    Join Date
    Feb 2009
    Posts
    96
    Rep Power
    3

    Hi,
    thanks it makes sense now, so for the insert through a form, does that mean when the user fill in the form for each question i need to insert a member id as well?

    Thanks in advance
    Last edited by dtz; March 13th, 2009 at 08:09 AM.

  6. #16
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    That's correct. That's how you will be able to related that user's reponse (answer) to their member account
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. help with form design
    By Ziggy in forum Microsoft Access
    Replies: 12
    Last Post: February 16th, 2009, 02:00 PM
  2. Database table design
    By Ziggy in forum Database Design Help
    Replies: 17
    Last Post: February 16th, 2009, 01:55 PM

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

SEO by vBSEO