<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"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 &#8211; Fields &#8211; 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 &#8211; Fields &#8211; 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 &#8211; Fields &#8211; 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 &#8211; Fields &#8211; 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 &#8211; Fields &#8211; 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 &#8211; Fields &#8211; 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":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"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 v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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\":\"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\":\"required name=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:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"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"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@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":"required name=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:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","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}]}}