normalisation/relationship question


i'm trying save user data. ran question. town has got many streets. street has name. town has many streets. has street many towns? @ first street has 1 town. name present in many towns.

following:
town has many streets
street has 1 town
street has relationship table called streetname
streetname have n n relationship street.

insights?
 

unless there reason store street-names in separate table (like wanted find towns main street), think should consider street-name attribute of street. then, constructed query information. , database structure isn't over-complicated , looks logical.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Sean Penn, "Chapo Guzman", and Rolling Stone

Subler - What is "Fix Audio Fallbacks"?

Help please Strange logs