Storing Preferences/One-to-One Relationships in Database

Posted by LnDCobra on Stack Overflow See other posts from Stack Overflow or by LnDCobra
Published on 2010-04-08T14:45:04Z Indexed on 2010/04/08 14:53 UTC
Read the original article Hit count: 478

Filed under:
|

What is the best way to store settings for certain objects in my database?

  1. Method one: Using a single table
    Table: Company {CompanyID, CompanyName, AutoEmail, AutoEmailAddress, AutoPrint, AutoPrintPrinter}

  2. Method two: Using two tables
    Table Company {CompanyID, COmpanyName}
    Table2 CompanySettings{CompanyID, utoEmail, AutoEmailAddress, AutoPrint, AutoPrintPrinter}

© Stack Overflow or respective owner

Related posts about database

Related posts about database-design