Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Database Help [modified]

Database Help [modified]

Scheduled Pinned Locked Moved Database
helpdatabasedesignquestiondiscussion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ASPnoob
    wrote on last edited by
    #1

    Hi I am new to database design and I would like your opinions on my database. I am creating a database to hold website member info. In my register page I ask users who wish to become members to supply the following infos. First Name, Last Name, Profession, Address, City, State, Zip, Phone Number, Email, User Name, Password From the info above, I've created a database called Members, a table called Users, and another table called ContactInfo.

    Users ContactInfo
    _______________ ___________________
    |UserID | |Email |
    _______________ ___________________
    |Email | |Phone |
    _______________ ___________________
    |FirstName | |Address |
    _______________ ___________________
    |LastName | |City |
    _______________ ___________________
    |UserName | |State |
    _______________ ___________________
    |Password | |Zip |
    _______________ ___________________

    Do you see any problem with the above database? Please point out any problems that you see. Thank you in advance for your help. -- modified at 3:43 Monday 11th June, 2007

    G H 2 Replies Last reply
    0
    • A ASPnoob

      Hi I am new to database design and I would like your opinions on my database. I am creating a database to hold website member info. In my register page I ask users who wish to become members to supply the following infos. First Name, Last Name, Profession, Address, City, State, Zip, Phone Number, Email, User Name, Password From the info above, I've created a database called Members, a table called Users, and another table called ContactInfo.

      Users ContactInfo
      _______________ ___________________
      |UserID | |Email |
      _______________ ___________________
      |Email | |Phone |
      _______________ ___________________
      |FirstName | |Address |
      _______________ ___________________
      |LastName | |City |
      _______________ ___________________
      |UserName | |State |
      _______________ ___________________
      |Password | |Zip |
      _______________ ___________________

      Do you see any problem with the above database? Please point out any problems that you see. Thank you in advance for your help. -- modified at 3:43 Monday 11th June, 2007

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      The two tables aren't linked to each other. How will you retrieve user's contact info given his/her userID?

      my articles

      1 Reply Last reply
      0
      • A ASPnoob

        Hi I am new to database design and I would like your opinions on my database. I am creating a database to hold website member info. In my register page I ask users who wish to become members to supply the following infos. First Name, Last Name, Profession, Address, City, State, Zip, Phone Number, Email, User Name, Password From the info above, I've created a database called Members, a table called Users, and another table called ContactInfo.

        Users ContactInfo
        _______________ ___________________
        |UserID | |Email |
        _______________ ___________________
        |Email | |Phone |
        _______________ ___________________
        |FirstName | |Address |
        _______________ ___________________
        |LastName | |City |
        _______________ ___________________
        |UserName | |State |
        _______________ ___________________
        |Password | |Zip |
        _______________ ___________________

        Do you see any problem with the above database? Please point out any problems that you see. Thank you in advance for your help. -- modified at 3:43 Monday 11th June, 2007

        H Offline
        H Offline
        Harini N K
        wrote on last edited by
        #3

        Hi 1. Why two tables? 2. Are you storing more than 1 record in ContactInfo table for a particular user? 3. If you are storing more than 1 contact Info, link should be maintained between those two tables. Users table should have one more column i.e., UserID to maintain unique row. This column should be added to ContactInfo Table so that you can retrieve contact details based on UserID. See definitions of Normalization for more information. There are three normal forms in database design. For best example, have a look at Orders and Order Details tables of Northwind database and check the common column between these two table.

        Harini

        S 1 Reply Last reply
        0
        • H Harini N K

          Hi 1. Why two tables? 2. Are you storing more than 1 record in ContactInfo table for a particular user? 3. If you are storing more than 1 contact Info, link should be maintained between those two tables. Users table should have one more column i.e., UserID to maintain unique row. This column should be added to ContactInfo Table so that you can retrieve contact details based on UserID. See definitions of Normalization for more information. There are three normal forms in database design. For best example, have a look at Orders and Order Details tables of Northwind database and check the common column between these two table.

          Harini

          S Offline
          S Offline
          Sankar Komma
          wrote on last edited by
          #4

          hi, Database is correct use userid for relation more than email id. it is preferable in database.

          k.ravi sankar

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups