Customer Database Best Practices???

Discussion in 'MySQL' started by jack9, Jul 9, 2008.

  1. #1
    Does anyone know of a good document or site where I can get Best Practices for creating a Customer Database (SQL)? For example, Customer buys 2 different products at 2 different times and uses different email addresses. Or they decide to change their email address in their account after they purchase. Of course I don't want to overwrite the info. And I want to see the interaction of the customer historically...
     
    jack9, Jul 9, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    Hard info to find for free. Here's a site with free database models, think they are MS SQL based but can be adapted to MySQL or other.

    http://www.databaseanswers.org/data_models/

    Just some quick advice. Customer's information would/should be in one table while their orders are in another table. Referenced by the customer's id. Setting up a history of actions would pretty much boil down to logging and depending on activity could be cumbersome.
     
    shallowink, Jul 9, 2008 IP
  3. jack9

    jack9 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cool - thanks!
     
    jack9, Jul 11, 2008 IP