Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 17th, 2012  |  syntax: None  |  size: 0.73 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. one or four tables? (db structure)
  2. id | thingID | regionId | countyId | cityId | placeId
  3.        
  4. id | thingId | regionId
  5.  
  6. id | thingId | countyId
  7.  
  8. id | thingId | cityId
  9.  
  10. id | thingId | placeId
  11.        
  12. Table: location
  13. ID     Name                 Parent
  14. ------------------------
  15. 1     South East England    null
  16. 2     Middlesex             1
  17. 3     London                2
  18. 4     Chelsea               3
  19. 5     Kent                  1
  20. 6     Canterbury            5
  21.  
  22.  
  23. Table: item
  24. Id     name
  25. -----------------
  26. 1      Posh Boy
  27. 2      Cricket ground
  28. 3      Rain
  29.  
  30. Table: item_location
  31. ItemID    LocationID
  32. --------------------
  33. 1        4    //Posh boy in Chelsea
  34. 2        2    // Cricket ground in Middlesex
  35. 3        1    // Rain in the South East of England.