{"id":1037,"date":"2021-07-19T10:31:55","date_gmt":"2021-07-19T10:31:55","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=1037"},"modified":"2021-09-09T06:17:49","modified_gmt":"2021-09-09T06:17:49","slug":"design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/","title":{"rendered":"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"hierarchical-data\" class=\"color-pink\" style=\"text-align: justify;\">Hierarchical data<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Hierarchical data is a common relational data pattern for representing tree-like data structures, such as an organizational structure, a project breakdown list, or even a family tree.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>In relational database model, One thing to remember is that flexibility in keys.<\/li>\n<li>We have the flexibility to design the database, it might be worth having multiple geometry types for certain data types.<\/li>\n<li>For example, having a city represented as a polygon would be useful to perform spatial queries to determine all points of interest within that city.<\/li>\n<li>At the same time, it is oftentimes more desirable to represent a city as a point on a map. The database allows you to do this by separating the attribute data from the features into their own table, and linking them together with a Primary Key\/Foreign Key structure.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png\" alt=\" Hierarchical data\" \/><\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"primary-key\" class=\"color-blue\">Primary Key:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>A Primary Key is an identifier for a record in a table.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"foreign-key\" class=\"color-blue\">Foreign Key:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>A Foreign Key is a reference to that same identifier in a different table, thus linking them together.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"create-database-testdb\" class=\"color-blue\">CREATE DATABASE testDB:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\"><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>We want to includes this tables to the database:<\/li>\n<li>Continent \u2013 Fields \u2013 Geom (Polygon), ID(Primary Key), Name, Etc<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><code id=\"code1\" class=\"hljs scss\" data-lang=\"\"><span class=\"nt\"><strong>CREATE <span class=\"hljs-tag\">TABLE<\/span> Continent (\r\n    ID int NOT NULL PRIMARY KEY,\r\n    Name <span class=\"hljs-function\">varchar<\/span>(255) NOT NULL,\r\n    Geom_Polygon <span class=\"hljs-function\">varchar<\/span>(255),\r\n    Age int\r\n);\r\n<\/strong><\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<p>Country \u2013 Fields \u2013 Geom (Polygon), ID, Name, Continent ID(Foreign Key)<\/p>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><code id=\"code2\" class=\"hljs scss\" data-lang=\"\"><span class=\"nt\"><strong>CREATE <span class=\"hljs-tag\">TABLE<\/span> Country (\r\n    ID int NOT NULL PRIMARY KEY,\r\n    Name <span class=\"hljs-function\">varchar<\/span>(255) NOT NULL,\r\n    Geom_Polygon <span class=\"hljs-function\">varchar<\/span>(255),\r\n    Continent_id int FOREIGN KEY REFERENCES Continent (ID)\r\n);<\/strong><\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"region\" class=\"color-blue\">Region:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>If there are different levels of regions within a country, then we would have them as different layers.<\/li>\n<li>So, if a country has regions called districts, and a number of districts combine to form a state, which then combine to form the country, you would have a layer for each type.<\/li>\n<li>Reg_State \u2013 Fields \u2013 Geom (Polygon), ID (Primary Key), Name, Country ID, Etc<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><code id=\"code3\" class=\"hljs scss\" data-lang=\"\"><span class=\"nt\"><strong>CREATE <span class=\"hljs-tag\">TABLE<\/span> Reg_State (\r\n    ID int NOT NULL PRIMARY KEY,\r\n    Name <span class=\"hljs-function\">varchar<\/span>(255) NOT NULL,\r\n    Geom_Polygon <span class=\"hljs-function\">varchar<\/span>(255),\r\n    Country_id int FOREIGN KEY REFERENCES <span class=\"hljs-function\">Country<\/span>(ID)\r\n);<\/strong><\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"cities\" class=\"color-blue\">Cities:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Have a table that contains attributes for each city, but no geometry.<\/li>\n<li>Have geometry tables with different geometries, like point or polygon, that link to the main city table.<\/li>\n<li>City_Info \u2013 Fields \u2013 CityID (Primary key), Name,Reg_District ID (Foreign Key), Etc,<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><strong><code id=\"code4\" class=\"hljs scss\" data-lang=\"\"><span class=\"nt\">CREATE <span class=\"hljs-tag\">TABLE<\/span> City_Info (\r\n    CityID int NOT NULL PRIMARY KEY,\r\n    Name <span class=\"hljs-function\">varchar<\/span>(255) NOT NULL,\r\n    Reg_District_id int FOREIGN KEY REFERENCES <span class=\"hljs-function\">District<\/span>(ID)\r\n);<\/span><\/code><\/strong><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<p>City_Pt \u2013 Fields \u2013 Geom (Point), ID, Name, CityID (Foreign Key)<\/p>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><strong><code id=\"code5\" class=\"hljs scss\" data-lang=\"\"><span class=\"nt\">CREATE <span class=\"hljs-tag\">TABLE<\/span> City_Pt (\r\n    ID int NOT NULL,\r\n    Name <span class=\"hljs-function\">varchar<\/span>(255) NOT NULL,\r\n    Geom_Point <span class=\"hljs-function\">varchar<\/span>(255),\r\n    CityID int FOREIGN KEY REFERENCES <span class=\"hljs-function\">City_Info<\/span>(CityID )\r\n);<\/span><\/code><\/strong><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<p>City_Poly \u2013 Fields \u2013 Geom (Polygon), ID, Name, CityID (Foreign Key)<\/p>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><code id=\"code6\" class=\"hljs scss\" data-lang=\"\"><span class=\"nt\"><strong>CREATE <span class=\"hljs-tag\">TABLE<\/span> City_Poly (\r\n    ID int NOT NULL,\r\n    Name <span class=\"hljs-function\">varchar<\/span>(255) NOT NULL,\r\n    Geom_Polygon <span class=\"hljs-function\">varchar<\/span>(255),\r\n    CityID int FOREIGN KEY REFERENCES <span class=\"hljs-function\">City_Info<\/span>(CityID )\r\n);<\/strong><\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<p style=\"text-align: justify;\">This is the one of the ways of setting up the database, again it depends on your specific needs for being able to link different pieces of data together.<\/p>\n<ul>\n<li style=\"text-align: justify;\">Once the table structure is determined, the next part will be to set up queries to retrieve the information you want, for inclusion in a report or some sort of viewing application.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : Hierarchical data is a common relational data pattern for representing tree-like data structures&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7157],"tags":[195,7247,7254,7249,7244,360,203,199,214,7252,198,363,209,15936,205,7233,7250,222,7251,7238,7232,7241,7237,7235,7234,7253,7239,7245,7248,7243,7240,7236,196,212,213,286,710,207,366,204,282,208,367,3715,206,7207,200,197,280,364,7242,7246,285],"class_list":["post-1037","post","type-post","status-publish","format-standard","hentry","category-dbms","tag-accenture-interview-questions-and-answers","tag-advantages-and-disadvantages-of-hierarchical-model","tag-advantages-and-disadvantages-of-hierarchical-structure","tag-advantages-of-hierarchical-model","tag-advantages-of-hierarchical-structure","tag-atos-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-characteristics-of-hierarchical-database-model","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-dawnbit-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-ehierarchical-data-model","tag-explain-hierarchical-data-model-with-example","tag-flipkart-interview-questions-and-answers","tag-hierarchical-data-model-example","tag-hierarchical-data-structure","tag-hierarchical-databas","tag-hierarchical-database-advantages-and-disadvantages","tag-hierarchical-database-example","tag-hierarchical-database-model","tag-hierarchical-database-model-advantages-and-disadvantages","tag-hierarchical-database-model-diagram","tag-hierarchical-model","tag-hierarchical-model-advantages-and-disadvantages","tag-hierarchical-model-example","tag-hierarchical-queriesdis","tag-hierarchical-structure-definition","tag-hierarchical-structure-example","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-infosys-technologies-interview-questions-and-answers","tag-lt-infotech-interview-questions-and-answers","tag-mavenir-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-persistent-systems-interview-questions-and-answers","tag-prokarma-softech-pvt-ltd-interview-questions-and-answers","tag-rbs-india-development-centre-pvt-ltd-interview-questions-and-answers","tag-ruboid-technovision-pvt-ltd-interview-questions-and-answers","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-shell-infotech-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-virtusa-consulting-services-pvt-ltd-interview-questions-and-answers","tag-wells-fargo-interview-questions-and-answers","tag-what-is-hierarchical-database","tag-what-is-hierarchical-model","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Design a database for a hierarchical data like country, state, zone, street<\/title>\n<meta name=\"description\" content=\"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Design a database for a hierarchical data like country, state, zone, street\" \/>\n<meta property=\"og:description\" content=\"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-19T10:31:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-09T06:17:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?\",\"datePublished\":\"2021-07-19T10:31:55+00:00\",\"dateModified\":\"2021-09-09T06:17:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/\"},\"wordCount\":429,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/dbms\\\/hierarchical-data.png\",\"keywords\":[\"Accenture interview questions and answers\",\"advantages and disadvantages of hierarchical model\",\"advantages and disadvantages of hierarchical structure\",\"advantages of hierarchical model\",\"advantages of hierarchical structure\",\"Atos interview questions and answers\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"characteristics of hierarchical database model\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"Collabera Technologies interview questions and answers\",\"dawnbit interview questions and answers\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"ehierarchical data model\",\"explain hierarchical data model with example\",\"Flipkart interview questions and answers\",\"hierarchical data model example\",\"hierarchical data structure\",\"hierarchical databas\",\"hierarchical database advantages and disadvantages\",\"hierarchical database example\",\"hierarchical database model\",\"hierarchical database model advantages and disadvantages\",\"hierarchical database model diagram\",\"hierarchical model\",\"hierarchical model advantages and disadvantages\",\"hierarchical model example\",\"hierarchical queriesdis\",\"hierarchical structure definition\",\"hierarchical structure example\",\"IBM interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"Infosys Technologies interview questions and answers\",\"L&amp;T Infotech interview questions and answers\",\"Mavenir interview questions and answers\",\"Mphasis interview questions and answers\",\"NetApp interview questions and answers\",\"Oracle Corporation interview questions and answers\",\"Persistent Systems interview questions and answers\",\"Prokarma Softech Pvt Ltd interview questions and answers\",\"RBS India Development Centre Pvt Ltd interview questions and answers\",\"Ruboid Technovision Pvt Ltd interview questions and answers\",\"SAP Labs India Pvt Ltd interview questions and answers\",\"Shell Infotech interview questions and answers\",\"Tech Mahindra interview questions and answers\",\"UnitedHealth Group interview questions and answers\",\"Virtusa Consulting Services Pvt Ltd interview questions and answers\",\"Wells Fargo interview questions and answers\",\"what is hierarchical database\",\"what is hierarchical model\",\"Xoriant Solutions Pvt Ltd interview questions and answers\"],\"articleSection\":[\"DBMS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/\",\"name\":\"Design a database for a hierarchical data like country, state, zone, street\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/dbms\\\/hierarchical-data.png\",\"datePublished\":\"2021-07-19T10:31:55+00:00\",\"dateModified\":\"2021-09-09T06:17:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/dbms\\\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/dbms\\\/hierarchical-data.png\",\"contentUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/dbms\\\/hierarchical-data.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Design a database for a hierarchical data like country, state, zone, street","description":"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/","og_locale":"en_US","og_type":"article","og_title":"Design a database for a hierarchical data like country, state, zone, street","og_description":"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/","og_site_name":"Wikitechy","article_published_time":"2021-07-19T10:31:55+00:00","article_modified_time":"2021-09-09T06:17:49+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png","type":"","width":"","height":""}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?","datePublished":"2021-07-19T10:31:55+00:00","dateModified":"2021-09-09T06:17:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/"},"wordCount":429,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png","keywords":["Accenture interview questions and answers","advantages and disadvantages of hierarchical model","advantages and disadvantages of hierarchical structure","advantages of hierarchical model","advantages of hierarchical structure","Atos interview questions and answers","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","characteristics of hierarchical database model","Chetu interview questions and answers","Ciena Corporation interview questions and answers","Collabera Technologies interview questions and answers","dawnbit interview questions and answers","Dell International Services India Pvt Ltd interview questions and answers","ehierarchical data model","explain hierarchical data model with example","Flipkart interview questions and answers","hierarchical data model example","hierarchical data structure","hierarchical databas","hierarchical database advantages and disadvantages","hierarchical database example","hierarchical database model","hierarchical database model advantages and disadvantages","hierarchical database model diagram","hierarchical model","hierarchical model advantages and disadvantages","hierarchical model example","hierarchical queriesdis","hierarchical structure definition","hierarchical structure example","IBM interview questions and answers","Indecomm Global Services interview questions and answers","Infosys Technologies interview questions and answers","L&amp;T Infotech interview questions and answers","Mavenir interview questions and answers","Mphasis interview questions and answers","NetApp interview questions and answers","Oracle Corporation interview questions and answers","Persistent Systems interview questions and answers","Prokarma Softech Pvt Ltd interview questions and answers","RBS India Development Centre Pvt Ltd interview questions and answers","Ruboid Technovision Pvt Ltd interview questions and answers","SAP Labs India Pvt Ltd interview questions and answers","Shell Infotech interview questions and answers","Tech Mahindra interview questions and answers","UnitedHealth Group interview questions and answers","Virtusa Consulting Services Pvt Ltd interview questions and answers","Wells Fargo interview questions and answers","what is hierarchical database","what is hierarchical model","Xoriant Solutions Pvt Ltd interview questions and answers"],"articleSection":["DBMS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/","name":"Design a database for a hierarchical data like country, state, zone, street","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png","datePublished":"2021-07-19T10:31:55+00:00","dateModified":"2021-09-09T06:17:49+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Design a database for a hierarchical data like country, state, zone, street etc., The tags and length of the hierarchy are not specific and they can change anytime ?","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/design-a-database-for-a-hierarchical-data-like-country-state-zone-street-etc-the-tags-and-length-of-the-hierarchy-are-not-specific-and-they-can-change-anytime\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/dbms\/hierarchical-data.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/1037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=1037"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/1037\/revisions"}],"predecessor-version":[{"id":3113,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/1037\/revisions\/3113"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=1037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=1037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}