Hi All,
I am creating a database where I need to create tables like 'tblCountry' which will contains all countries in world with names, short name, country code and phone code.
Similarly for all countries in 'tblCountry'', I need to create table 'tblState' which will contains all states of that country with name and short name.
Similary for all states in 'tblState', I need to create table 'tblCity' which will contains all city of that state.
Each of these tables will be related to each other so that I can retrieve required data based on selected country, state and city.
Does any one having SQL scripts for the same?
Thanks in Advance.


Gowtham KRank #65 · 26.5K reputationPosted Jun 20, 2015, 4:55 AM EDT
Kiran Roy4 reputationPosted Jun 25, 2015, 5:00 PM EDT
Insert Into tbl_state Values(1, 'State_name')
Liladhar Nimje84 reputationPosted Jun 20, 2015, 7:00 AM EDT