code_junkie

How do I design a database to store changes over time?

Nov 13th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. table kid
  2. int pkey(id)
  3. text name
  4.  
  5. table weight
  6. date when
  7. int kidid fkey(kid.id)
  8. int weight
  9. int pkey(id)
  10.  
  11. Child Table
  12. -----------
  13. ID (Generated) (PK)
  14. Name
  15.  
  16.  
  17. WeightTable
  18. -----------
  19. ID (Generated) (PK)
  20. Date
  21. Weight
  22. ChildID (FK)
Add Comment
Please, Sign In to add comment