How should I store this data?...

Discussion in 'Databases' started by Imozeb, Apr 2, 2010.

  1. #1
    I have a bunch of similar data for profiles, like: name, pass, id, url, date, ldate, des, a, gen.

    Should I store the data in one table, with column names refering to the data it contains or should I create a table in the database for each user?

    Thanks.

    ~imozeb :)
     
    Imozeb, Apr 2, 2010 IP
  2. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    That depends on how you planned your application, but it looks to me that the first choice is wiser...
    you can easily find members who:
    * singed at a specific date range
    * using the same password
    * who are male or female
    etc...
     
    nabil_kadimi, Apr 2, 2010 IP
  3. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay, thanks. Just one more question. Is there a max amount of data I can store in one table or is this just the max data I can store in the entire database?
     
    Imozeb, Apr 2, 2010 IP
  4. Programmer2009

    Programmer2009 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    One table.

    There is no max.
     
    Programmer2009, Apr 3, 2010 IP
  5. kenntrix

    kenntrix Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it depends on how you developed your application. make it sure to make your design normalize for you to easily handle your data. try to study database normalization.
     
    kenntrix, Apr 5, 2010 IP
  6. webmasterforums

    webmasterforums Peon

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    see , as per fields you specified, batter will be to use one table, as you can get retrieval of all users at a time. but here fields like Email ID, user ID and contact number should me unique. so you put constrain on these fields. and further more you can use primary key and foreign key constrain if you need to co relate any table with this one in future .

    thanks.
    best of luck.
     
    webmasterforums, Apr 5, 2010 IP