SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    May 2002
    Posts
    1,370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    one or two tables?

    I've been debating whether to place values on two tables, rather than one, where:

    Users go to a single page insert form where each user can make a single request.(among about 125 drop menu options, there are also other fields for request attributes like their budget, when they want the request to occur, & two other attributes) and they may also enter comments in a textarea (varchar). the existing able also contains info like name, contact, etc.

    Would this be considered a single entity?

    This is a 1 to 1 relationship isn't it? Would they have to be able to make multiple requests for this to be many to many?

  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)
    yeah, sounds like one set of data collected for one user would go into one row in one table

    unless there was, you know, a repeating element, like a choice of options, if the user could choose a bunch of options, then those would be in a 1-to-many relationship with the user's set of basic data
    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


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
  •