Quantcast
Channel: Country/Region/City Data Model - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by user11328710 for Country/Region/City Data Model

I prefer the original option: tblCountry -> tblRegion -> tblCity. If no Region exists have Region = Country add a check box to indicate Region does not exist and ignore duplicate entry. Just a...

View Article


Answer by Mike Sherrill 'Cat Recall' for Country/Region/City Data Model

You have two different issues here.A database design issue (how to model city names)A user-interface design issue (how should the user enter city names)Although those two issues interact somewhat, they...

View Article

Answer by sfinnie for Country/Region/City Data Model

If:All countries will have cities.and:Not all countries will have regions.then:just put countryID and regionID within City tableis the most obvious way to model it. As you suggest, it's not a...

View Article

Answer by Shahriar for Country/Region/City Data Model

Well,if you put regionID in you city table,and if you don't have region,it would be null in your city table too.So no benefit.You are asking about a 0-To-Many relationship which is a 1-to-many...

View Article

Answer by plague for Country/Region/City Data Model

why not have a countryID in the city table as well so you can map back to either region or country depending on your need at the time

View Article


Country/Region/City Data Model

Country: countryID, countryNameRegion: regionID, countryID (FK), regionNameCity: cityID, regionID (FK), cityNameAll countries will have cities.Not will all countries will have regions. Region will only...

View Article
Browsing all 6 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>