{"entry_id": "219457ab-2ad5-4900-bd6e-85a73675b25d", "infos": [{"txt": "Working with JSON", "language": "english", "position": {"atoms": [{"position_id": 0, "txt": "Working with JSON", "x": "//title"}]}, "tags": [], "label": "O", "web_segment_id": 0, "global_sentence_id": 0, "edu_l1_label": "EDU_O"}, {"txt": "Working with JSON in PostgreSQL#", "language": "english", "position": {"atoms": [{"position_id": 3662, "txt": "Working with JSON in PostgreSQL", "x": "/html/body/div[3]/main/div/div[3]/article/h1"}, {"position_id": 3664, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h1/a"}]}, "tags": ["h1"], "label": "article_title", "web_segment_id": 2, "global_sentence_id": 1, "edu_l1_label": "BOT"}, {"txt": "As part of a personal project, I wanted to store a large part of the INSEE's french census data in a PostgreSQL database with multi-millennial tables.", "language": "english", "position": {"atoms": [{"position_id": 3666, "txt": "As part of a personal project, I wanted to store a large part of the INSEE's french census data in a PostgreSQL database with multi-millennial tables.", "x": "/html/body/div[3]/main/div/div[3]/article/p[2]"}]}, "tags": [], "label": "content", "web_segment_id": 3, "global_sentence_id": 2, "edu_l1_label": "BOS"}, {"txt": " The problem is that, within the same dataset, the fields can change over the years, which makes it impossible to create a fixed table structure.", "language": "english", "position": {"atoms": [{"position_id": 3667, "txt": " The problem is that, within the same dataset, the fields can change over the years, which makes it impossible to create a fixed table structure.", "x": "/html/body/div[3]/main/div/div[3]/article/p[2]"}]}, "tags": [], "label": "content", "web_segment_id": 3, "global_sentence_id": 3, "edu_l1_label": "IOS"}, {"txt": " The solution?", "language": "english", "position": {"atoms": [{"position_id": 3668, "txt": " The solution?", "x": "/html/body/div[3]/main/div/div[3]/article/p[2]"}]}, "tags": [], "label": "content", "web_segment_id": 3, "global_sentence_id": 4, "edu_l1_label": "IOS"}, {"txt": " Use semi-structured data, i.e. store this data in JSON in a table field.", "language": "english", "position": {"atoms": [{"position_id": 3669, "txt": " Use semi-structured data, i.e. store this data in JSON in a table field.", "x": "/html/body/div[3]/main/div/div[3]/article/p[2]"}]}, "tags": [], "label": "content", "web_segment_id": 3, "global_sentence_id": 5, "edu_l1_label": "IOS"}, {"txt": " This article is a summary of that experience.", "language": "english", "position": {"atoms": [{"position_id": 3670, "txt": " This article is a summary of that experience.", "x": "/html/body/div[3]/main/div/div[3]/article/p[2]"}]}, "tags": [], "label": "content", "web_segment_id": 3, "global_sentence_id": 6, "edu_l1_label": "IOS"}, {"txt": "Unscheduled obsolescence", "language": "english", "position": {"atoms": [{"position_id": 3672, "txt": "Unscheduled obsolescence", "x": "/html/body/div[3]/main/div/div[3]/article/div[1]/p[1]"}]}, "tags": [], "label": "title1", "web_segment_id": 4, "global_sentence_id": 7, "edu_l1_label": "BOS"}, {"txt": "This work was carried out before the release of PostgreSQL 17, which adds important features for JSON with JSON_TABLE, so it won't be mentioned here.", "language": "english", "position": {"atoms": [{"position_id": 3674, "txt": "This work was carried out before the release of PostgreSQL 17, which adds important features for JSON with ", "x": "/html/body/div[3]/main/div/div[3]/article/div[1]/p[2]"}, {"position_id": 3676, "txt": "JSON_TABLE", "x": "/html/body/div[3]/main/div/div[3]/article/div[1]/p[2]/a/code"}, {"position_id": 3678, "txt": ", so it won't be mentioned here.", "x": "/html/body/div[3]/main/div/div[3]/article/div[1]/p[2]/a"}]}, "tags": [], "label": "content", "web_segment_id": 5, "global_sentence_id": 8, "edu_l1_label": "IOS"}, {"txt": "Since we're going to be talking about JSON and semi-structured data, I feel obliged to start this article with a warning.", "language": "english", "position": {"atoms": [{"position_id": 3680, "txt": "Since we're going to be talking about JSON and semi-structured data, I feel obliged to start this article with a warning.", "x": "/html/body/div[3]/main/div/div[3]/article/p[3]"}]}, "tags": [], "label": "content", "web_segment_id": 6, "global_sentence_id": 9, "edu_l1_label": "IOS"}, {"txt": "The relational model is good, eat it up, and integrity constraints were invented for good reason.", "language": "english", "position": {"atoms": [{"position_id": 3682, "txt": "The relational model is good, eat it up, and integrity constraints were invented for good reason.", "x": "/html/body/div[3]/main/div/div[3]/article/p[4]/strong"}]}, "tags": ["strong"], "label": "content", "web_segment_id": 7, "global_sentence_id": 10, "edu_l1_label": "IOS"}, {"txt": "This article is not intended to be an invitation to go into YOLO mode on data management:", "language": "english", "position": {"atoms": [{"position_id": 3684, "txt": "This article is not intended to be an invitation to go into YOLO mode on data management:", "x": "/html/body/div[3]/main/div/div[3]/article/p[5]"}]}, "tags": [], "label": "content", "web_segment_id": 8, "global_sentence_id": 11, "edu_l1_label": "IOS"}, {"txt": " “all you have to do is put everything in JSON” (like a vulgar dev who would put everything in MongoDB, as the bad tongues would say).", "language": "english", "position": {"atoms": [{"position_id": 3685, "txt": " “all you have to do is put everything in JSON” (like a vulgar dev who would put everything in MongoDB, as the bad tongues would say).", "x": "/html/body/div[3]/main/div/div[3]/article/p[5]"}]}, "tags": [], "label": "content", "web_segment_id": 8, "global_sentence_id": 12, "edu_l1_label": "IOS"}, {"txt": "JSON for beginners#", "language": "english", "position": {"atoms": [{"position_id": 3687, "txt": "JSON for beginners", "x": "/html/body/div[3]/main/div/div[3]/article/h2[1]"}, {"position_id": 3689, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[1]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 9, "global_sentence_id": 13, "edu_l1_label": "BOS"}, {"txt": "For those of you unfamiliar with JSON it's a text-based data representation format from JavaScript that works in part on a key:", "language": "english", "position": {"atoms": [{"position_id": 3691, "txt": "For those of you unfamiliar with ", "x": "/html/body/div[3]/main/div/div[3]/article/p[6]"}, {"position_id": 3693, "txt": "JSON", "x": "/html/body/div[3]/main/div/div[3]/article/p[6]/a"}, {"position_id": 3695, "txt": " it's a text-based data representation format from JavaScript that works in part on a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[6]/a"}, {"position_id": 3697, "txt": "key:", "x": "/html/body/div[3]/main/div/div[3]/article/p[6]/code"}]}, "tags": [], "label": "content", "web_segment_id": 10, "global_sentence_id": 14, "edu_l1_label": "IOS"}, {"txt": "value system that can be seen as a sort of evolution of XML.", "language": "english", "position": {"atoms": [{"position_id": 3698, "txt": "value", "x": "/html/body/div[3]/main/div/div[3]/article/p[6]/code"}, {"position_id": 3700, "txt": " system that can be seen as a sort of evolution of XML.", "x": "/html/body/div[3]/main/div/div[3]/article/p[6]/code"}]}, "tags": [], "label": "content", "web_segment_id": 10, "global_sentence_id": 15, "edu_l1_label": "IOS"}, {"txt": "{\"key_1\":\"", "language": "english", "position": {"atoms": [{"position_id": 3702, "txt": "{", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[1]"}, {"position_id": 3704, "txt": "\"key_1\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[2]"}, {"position_id": 3706, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[3]"}, {"position_id": 3708, "txt": "\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[5]"}]}, "tags": [], "label": "code", "web_segment_id": 11, "global_sentence_id": 16, "edu_l1_label": "IOS"}, {"txt": "value\",\"key_2\":\"", "language": "english", "position": {"atoms": [{"position_id": 3709, "txt": "value\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[5]"}, {"position_id": 3711, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[6]"}, {"position_id": 3713, "txt": "\"key_2\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[8]"}, {"position_id": 3715, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[9]"}, {"position_id": 3717, "txt": "\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[11]"}]}, "tags": [], "label": "code", "web_segment_id": 11, "global_sentence_id": 17, "edu_l1_label": "EDU_O"}, {"txt": "value\",\"key_3\":\"", "language": "english", "position": {"atoms": [{"position_id": 3718, "txt": "value\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[11]"}, {"position_id": 3720, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[12]"}, {"position_id": 3722, "txt": "\"key_3\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[14]"}, {"position_id": 3724, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[15]"}, {"position_id": 3726, "txt": "\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[17]"}]}, "tags": [], "label": "code", "web_segment_id": 11, "global_sentence_id": 18, "edu_l1_label": "EDU_O"}, {"txt": "value\"}", "language": "english", "position": {"atoms": [{"position_id": 3727, "txt": "value\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[17]"}, {"position_id": 3729, "txt": "}", "x": "/html/body/div[3]/main/div/div[3]/article/div[2]/pre/code/span/span[18]"}]}, "tags": [], "label": "code", "web_segment_id": 11, "global_sentence_id": 19, "edu_l1_label": "EDU_O"}, {"txt": "No need for quotation marks for numbers:", "language": "english", "position": {"atoms": [{"position_id": 3731, "txt": "No need for quotation marks for numbers:", "x": "/html/body/div[3]/main/div/div[3]/article/p[7]"}]}, "tags": [], "label": "content", "web_segment_id": 12, "global_sentence_id": 20, "edu_l1_label": "IOS"}, {"txt": "{\"nb_mushrooms\":", "language": "english", "position": {"atoms": [{"position_id": 3733, "txt": "{", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[1]"}, {"position_id": 3735, "txt": "\"nb_mushrooms\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[2]"}, {"position_id": 3737, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[3]"}]}, "tags": [], "label": "code", "web_segment_id": 13, "global_sentence_id": 21, "edu_l1_label": "IOS"}, {"txt": "42,\"nb_tomatoes\":", "language": "english", "position": {"atoms": [{"position_id": 3739, "txt": "42", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[5]"}, {"position_id": 3741, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[6]"}, {"position_id": 3743, "txt": "\"nb_tomatoes\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[8]"}, {"position_id": 3745, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[9]"}]}, "tags": [], "label": "code", "web_segment_id": 13, "global_sentence_id": 22, "edu_l1_label": "IOS"}, {"txt": "31,\"first_name\":\"", "language": "english", "position": {"atoms": [{"position_id": 3747, "txt": "31", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[11]"}, {"position_id": 3749, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[12]"}, {"position_id": 3751, "txt": "\"first_name\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[14]"}, {"position_id": 3753, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[15]"}, {"position_id": 3755, "txt": "\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[17]"}]}, "tags": [], "label": "code", "web_segment_id": 13, "global_sentence_id": 23, "edu_l1_label": "IOS"}, {"txt": "roger\"}", "language": "english", "position": {"atoms": [{"position_id": 3756, "txt": "roger\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[17]"}, {"position_id": 3758, "txt": "}", "x": "/html/body/div[3]/main/div/div[3]/article/div[3]/pre/code/span/span[18]"}]}, "tags": [], "label": "code", "web_segment_id": 13, "global_sentence_id": 24, "edu_l1_label": "IOS"}, {"txt": "Values can take two forms:", "language": "english", "position": {"atoms": [{"position_id": 3760, "txt": "Values can take two forms:", "x": "/html/body/div[3]/main/div/div[3]/article/p[8]"}]}, "tags": [], "label": "content", "web_segment_id": 14, "global_sentence_id": 25, "edu_l1_label": "IOS"}, {"txt": "either a single value, as in the example above,", "language": "english", "position": {"atoms": [{"position_id": 3762, "txt": "either a single value, as in the example above,", "x": "/html/body/div[3]/main/div/div[3]/article/ul[1]/li[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 15, "global_sentence_id": 26, "edu_l1_label": "IOS"}, {"txt": "or an array, a list, enclosed in [], both of which can be combined in a single JSON object.", "language": "english", "position": {"atoms": [{"position_id": 3764, "txt": "or an array, a list, enclosed in ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[1]/li[2]"}, {"position_id": 3766, "txt": "[]", "x": "/html/body/div[3]/main/div/div[3]/article/ul[1]/li[2]/code"}, {"position_id": 3768, "txt": ", both of which can be combined in a single JSON object.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[1]/li[2]/code"}]}, "tags": ["li"], "label": "content", "web_segment_id": 16, "global_sentence_id": 27, "edu_l1_label": "IOS"}, {"txt": "{\"prenoms\":", "language": "english", "position": {"atoms": [{"position_id": 3770, "txt": "{", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[1]"}, {"position_id": 3772, "txt": "\"prenoms\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[2]"}, {"position_id": 3774, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[3]"}]}, "tags": [], "label": "code", "web_segment_id": 17, "global_sentence_id": 28, "edu_l1_label": "IOS"}, {"txt": "[\"elodie\",\"roger\",\"fatima\"],\"nb_mushrooms\":", "language": "english", "position": {"atoms": [{"position_id": 3776, "txt": "[", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[5]"}, {"position_id": 3778, "txt": "\"elodie\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[6]"}, {"position_id": 3780, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[7]"}, {"position_id": 3782, "txt": "\"roger\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[9]"}, {"position_id": 3784, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[10]"}, {"position_id": 3786, "txt": "\"fatima\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[12]"}, {"position_id": 3788, "txt": "],", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[13]"}, {"position_id": 3790, "txt": "\"nb_mushrooms\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[15]"}, {"position_id": 3792, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[16]"}]}, "tags": [], "label": "code", "web_segment_id": 17, "global_sentence_id": 29, "edu_l1_label": "IOS"}, {"txt": "42}", "language": "english", "position": {"atoms": [{"position_id": 3794, "txt": "42", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[18]"}, {"position_id": 3796, "txt": "}", "x": "/html/body/div[3]/main/div/div[3]/article/div[4]/pre/code/span/span[19]"}]}, "tags": [], "label": "code", "web_segment_id": 17, "global_sentence_id": 30, "edu_l1_label": "IOS"}, {"txt": "What we call an object is everything between the {} used to declare it.", "language": "english", "position": {"atoms": [{"position_id": 3798, "txt": "What we call an object is everything between the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[9]"}, {"position_id": 3800, "txt": "{}", "x": "/html/body/div[3]/main/div/div[3]/article/p[9]/code"}, {"position_id": 3802, "txt": " used to declare it.", "x": "/html/body/div[3]/main/div/div[3]/article/p[9]/code"}]}, "tags": [], "label": "content", "web_segment_id": 18, "global_sentence_id": 31, "edu_l1_label": "IOS"}, {"txt": " To make things even more complex, we can nest objects and give you an example that's a little more meaningful than talking about tomatoes and mushrooms:", "language": "english", "position": {"atoms": [{"position_id": 3803, "txt": " To make things even more complex, we can nest objects and give you an example that's a little more meaningful than talking about tomatoes and mushrooms:", "x": "/html/body/div[3]/main/div/div[3]/article/p[9]/code"}]}, "tags": [], "label": "content", "web_segment_id": 18, "global_sentence_id": 32, "edu_l1_label": "IOS"}, {"txt": "<table <table class=\"highlighttable\" position_id=\"151\"><tbody position_id=\"152\"><tr position_id=\"153\"><th class=\"filename\" colspan=\"2\" position_id=\"154\"><span class=\"filename\" position_id=\"155\">Example with JSON of superheroes</span></th></tr><tr position_id=\"156\"><td class=\"linenos\" position_id=\"157\"><div class=\"linenodiv\" position_id=\"158\"/></td><td class=\"code\" position_id=\"243\"><div position_id=\"244\"><pre id=\"__code_3\" position_id=\"245\"><span position_id=\"246\"/><code class=\"md-code__content\" position_id=\"247\"><span id=\"__span-3-1\" position_id=\"248\"><a id=\"__codelineno-3-1\" name=\"__codelineno-3-1\" position_id=\"249\"/><span class=\"p\" position_id=\"250\">{</span></span><span id=\"__span-3-2\" position_id=\"251\"><a id=\"__codelineno-3-2\" name=\"__codelineno-3-2\" position_id=\"252\"/><span class=\"w\" position_id=\"253\">  </span><span class=\"nt\" position_id=\"254\">&quot;squadName&quot;</span><span class=\"p\" position_id=\"255\">:</span><span class=\"w\" position_id=\"256\"> </span><span class=\"s2\" position_id=\"257\">&quot;Super hero squad&quot;</span><span class=\"p\" position_id=\"258\">,</span></span><span id=\"__span-3-3\" position_id=\"259\"><a id=\"__codelineno-3-3\" name=\"__codelineno-3-3\" position_id=\"260\"/><span class=\"w\" position_id=\"261\">  </span><span class=\"nt\" position_id=\"262\">&quot;homeTown&quot;</span><span class=\"p\" position_id=\"263\">:</span><span class=\"w\" position_id=\"264\"> </span><span class=\"s2\" position_id=\"265\">&quot;Metro City&quot;</span><span class=\"p\" position_id=\"266\">,</span></span><span id=\"__span-3-4\" position_id=\"267\"><a id=\"__codelineno-3-4\" name=\"__codelineno-3-4\" position_id=\"268\"/><span class=\"w\" position_id=\"269\">  </span><span class=\"nt\" position_id=\"270\">&quot;formed&quot;</span><span class=\"p\" position_id=\"271\">:</span><span class=\"w\" position_id=\"272\"> </span><span class=\"mi\" position_id=\"273\">2016</span><span class=\"p\" position_id=\"274\">,</span></span><span id=\"__span-3-5\" position_id=\"275\"><a id=\"__codelineno-3-5\" name=\"__codelineno-3-5\" position_id=\"276\"/><span class=\"w\" position_id=\"277\">  </span><span class=\"nt\" position_id=\"278\">&quot;secretBase&quot;</span><span class=\"p\" position_id=\"279\">:</span><span class=\"w\" position_id=\"280\"> </span><span class=\"s2\" position_id=\"281\">&quot;Super tower&quot;</span><span class=\"p\" position_id=\"282\">,</span></span><span id=\"__span-3-6\" position_id=\"283\"><a id=\"__codelineno-3-6\" name=\"__codelineno-3-6\" position_id=\"284\"/><span class=\"w\" position_id=\"285\">  </span><span class=\"nt\" position_id=\"286\">&quot;active&quot;</span><span class=\"p\" position_id=\"287\">:</span><span class=\"w\" position_id=\"288\"> </span><span class=\"kc\" position_id=\"289\">true</span><span class=\"p\" position_id=\"290\">,</span></span><span id=\"__span-3-7\" position_id=\"291\"><a id=\"__codelineno-3-7\" name=\"__codelineno-3-7\" position_id=\"292\"/><span class=\"w\" position_id=\"293\">  </span><span class=\"nt\" position_id=\"294\">&quot;members&quot;</span><span class=\"p\" position_id=\"295\">:</span><span class=\"w\" position_id=\"296\"> </span><span class=\"p\" position_id=\"297\">[</span></span><span id=\"__span-3-8\" position_id=\"298\"><a id=\"__codelineno-3-8\" name=\"__codelineno-3-8\" position_id=\"299\"/><span class=\"w\" position_id=\"300\">    </span><span class=\"p\" position_id=\"301\">{</span></span><span id=\"__span-3-9\" position_id=\"302\"><a id=\"__codelineno-3-9\" name=\"__codelineno-3-9\" position_id=\"303\"/><span class=\"w\" position_id=\"304\">      </span><span class=\"nt\" position_id=\"305\">&quot;name&quot;</span><span class=\"p\" position_id=\"306\">:</span><span class=\"w\" position_id=\"307\"> </span><span class=\"s2\" position_id=\"308\">&quot;Molecule Man&quot;</span><span class=\"p\" position_id=\"309\">,</span></span><span id=\"__span-3-10\" position_id=\"310\"><a id=\"__codelineno-3-10\" name=\"__codelineno-3-10\" position_id=\"311\"/><span class=\"w\" position_id=\"312\">      </span><span class=\"nt\" position_id=\"313\">&quot;age&quot;</span><span class=\"p\" position_id=\"314\">:</span><span class=\"w\" position_id=\"315\"> </span><span class=\"mi\" position_id=\"316\">29</span><span class=\"p\" position_id=\"317\">,</span></span><span id=\"__span-3-11\" position_id=\"318\"><a id=\"__codelineno-3-11\" name=\"__codelineno-3-11\" position_id=\"319\"/><span class=\"w\" position_id=\"320\">      </span><span class=\"nt\" position_id=\"321\">&quot;secretIdentity&quot;</span><span class=\"p\" position_id=\"322\">:</span><span class=\"w\" position_id=\"323\"> </span><span class=\"s2\" position_id=\"324\">&quot;Dan Jukes&quot;</span><span class=\"p\" position_id=\"325\">,</span></span><span id=\"__span-3-12\" position_id=\"326\"><a id=\"__codelineno-3-12\" name=\"__codelineno-3-12\" position_id=\"327\"/><span class=\"w\" position_id=\"328\">      </span><span class=\"nt\" position_id=\"329\">&quot;powers&quot;</span><span class=\"p\" position_id=\"330\">:</span><span class=\"w\" position_id=\"331\"> </span><span class=\"p\" position_id=\"332\">[</span></span><span id=\"__span-3-13\" position_id=\"333\"><a id=\"__codelineno-3-13\" name=\"__codelineno-3-13\" position_id=\"334\"/><span class=\"w\" position_id=\"335\">        </span><span class=\"s2\" position_id=\"336\">&quot;Radiation resistance&quot;</span><span class=\"p\" position_id=\"337\">,</span></span><span id=\"__span-3-14\" position_id=\"338\"><a id=\"__codelineno-3-14\" name=\"__codelineno-3-14\" position_id=\"339\"/><span class=\"w\" position_id=\"340\">        </span><span class=\"s2\" position_id=\"341\">&quot;Turning tiny&quot;</span><span class=\"p\" position_id=\"342\">,</span></span><span id=\"__span-3-15\" position_id=\"343\"><a id=\"__codelineno-3-15\" name=\"__codelineno-3-15\" position_id=\"344\"/><span class=\"w\" position_id=\"345\">        </span><span class=\"s2\" position_id=\"346\">&quot;Radiation blast&quot;</span></span><span id=\"__span-3-16\" position_id=\"347\"><a id=\"__codelineno-3-16\" name=\"__codelineno-3-16\" position_id=\"348\"/><span class=\"w\" position_id=\"349\">      </span><span class=\"p\" position_id=\"350\">]</span></span><span id=\"__span-3-17\" position_id=\"351\"><a id=\"__codelineno-3-17\" name=\"__codelineno-3-17\" position_id=\"352\"/><span class=\"w\" position_id=\"353\">    </span><span class=\"p\" position_id=\"354\">},</span></span><span id=\"__span-3-18\" position_id=\"355\"><a id=\"__codelineno-3-18\" name=\"__codelineno-3-18\" position_id=\"356\"/><span class=\"w\" position_id=\"357\">    </span><span class=\"p\" position_id=\"358\">{</span></span><span id=\"__span-3-19\" position_id=\"359\"><a id=\"__codelineno-3-19\" name=\"__codelineno-3-19\" position_id=\"360\"/><span class=\"w\" position_id=\"361\">      </span><span class=\"nt\" position_id=\"362\">&quot;name&quot;</span><span class=\"p\" position_id=\"363\">:</span><span class=\"w\" position_id=\"364\"> </span><span class=\"s2\" position_id=\"365\">&quot;Madame Uppercut&quot;</span><span class=\"p\" position_id=\"366\">,</span></span><span id=\"__span-3-20\" position_id=\"367\"><a id=\"__codelineno-3-20\" name=\"__codelineno-3-20\" position_id=\"368\"/><span class=\"w\" position_id=\"369\">      </span><span class=\"nt\" position_id=\"370\">&quot;age&quot;</span><span class=\"p\" position_id=\"371\">:</span><span class=\"w\" position_id=\"372\"> </span><span class=\"mi\" position_id=\"373\">39</span><span class=\"p\" position_id=\"374\">,</span></span><span id=\"__span-3-21\" position_id=\"375\"><a id=\"__codelineno-3-21\" name=\"__codelineno-3-21\" position_id=\"376\"/><span class=\"w\" position_id=\"377\">      </span><span class=\"nt\" position_id=\"378\">&quot;secretIdentity&quot;</span><span class=\"p\" position_id=\"379\">:</span><span class=\"w\" position_id=\"380\"> </span><span class=\"s2\" position_id=\"381\">&quot;Jane Wilson&quot;</span><span class=\"p\" position_id=\"382\">,</span></span><span id=\"__span-3-22\" position_id=\"383\"><a id=\"__codelineno-3-22\" name=\"__codelineno-3-22\" position_id=\"384\"/><span class=\"w\" position_id=\"385\">      </span><span class=\"nt\" position_id=\"386\">&quot;powers&quot;</span><span class=\"p\" position_id=\"387\">:</span><span class=\"w\" position_id=\"388\"> </span><span class=\"p\" position_id=\"389\">[</span></span><span id=\"__span-3-23\" position_id=\"390\"><a id=\"__codelineno-3-23\" name=\"__codelineno-3-23\" position_id=\"391\"/><span class=\"w\" position_id=\"392\">        </span><span class=\"s2\" position_id=\"393\">&quot;Million tonne punch&quot;</span><span class=\"p\" position_id=\"394\">,</span></span><span id=\"__span-3-24\" position_id=\"395\"><a id=\"__codelineno-3-24\" name=\"__codelineno-3-24\" position_id=\"396\"/><span class=\"w\" position_id=\"397\">        </span><span class=\"s2\" position_id=\"398\">&quot;Damage resistance&quot;</span><span class=\"p\" position_id=\"399\">,</span></span><span id=\"__span-3-25\" position_id=\"400\"><a id=\"__codelineno-3-25\" name=\"__codelineno-3-25\" position_id=\"401\"/><span class=\"w\" position_id=\"402\">        </span><span class=\"s2\" position_id=\"403\">&quot;Superhuman reflexes&quot;</span></span><span id=\"__span-3-26\" position_id=\"404\"><a id=\"__codelineno-3-26\" name=\"__codelineno-3-26\" position_id=\"405\"/><span class=\"w\" position_id=\"406\">      </span><span class=\"p\" position_id=\"407\">]</span></span><span id=\"__span-3-27\" position_id=\"408\"><a id=\"__codelineno-3-27\" name=\"__codelineno-3-27\" position_id=\"409\"/><span class=\"w\" position_id=\"410\">    </span><span class=\"p\" position_id=\"411\">},</span></span><span id=\"__span-3-28\" position_id=\"412\"><a id=\"__codelineno-3-28\" name=\"__codelineno-3-28\" position_id=\"413\"/><span class=\"w\" position_id=\"414\">    </span><span class=\"p\" position_id=\"415\">{</span></span><span id=\"__span-3-29\" position_id=\"416\"><a id=\"__codelineno-3-29\" name=\"__codelineno-3-29\" position_id=\"417\"/><span class=\"w\" position_id=\"418\">      </span><span class=\"nt\" position_id=\"419\">&quot;name&quot;</span><span class=\"p\" position_id=\"420\">:</span><span class=\"w\" position_id=\"421\"> </span><span class=\"s2\" position_id=\"422\">&quot;Eternal Flame&quot;</span><span class=\"p\" position_id=\"423\">,</span></span><span id=\"__span-3-30\" position_id=\"424\"><a id=\"__codelineno-3-30\" name=\"__codelineno-3-30\" position_id=\"425\"/><span class=\"w\" position_id=\"426\">      </span><span class=\"nt\" position_id=\"427\">&quot;age&quot;</span><span class=\"p\" position_id=\"428\">:</span><span class=\"w\" position_id=\"429\"> </span><span class=\"mi\" position_id=\"430\">1000000</span><span class=\"p\" position_id=\"431\">,</span></span><span id=\"__span-3-31\" position_id=\"432\"><a id=\"__codelineno-3-31\" name=\"__codelineno-3-31\" position_id=\"433\"/><span class=\"w\" position_id=\"434\">      </span><span class=\"nt\" position_id=\"435\">&quot;secretIdentity&quot;</span><span class=\"p\" position_id=\"436\">:</span><span class=\"w\" position_id=\"437\"> </span><span class=\"s2\" position_id=\"438\">&quot;Unknown&quot;</span><span class=\"p\" position_id=\"439\">,</span></span><span id=\"__span-3-32\" position_id=\"440\"><a id=\"__codelineno-3-32\" name=\"__codelineno-3-32\" position_id=\"441\"/><span class=\"w\" position_id=\"442\">      </span><span class=\"nt\" position_id=\"443\">&quot;powers&quot;</span><span class=\"p\" position_id=\"444\">:</span><span class=\"w\" position_id=\"445\"> </span><span class=\"p\" position_id=\"446\">[</span></span><span id=\"__span-3-33\" position_id=\"447\"><a id=\"__codelineno-3-33\" name=\"__codelineno-3-33\" position_id=\"448\"/><span class=\"w\" position_id=\"449\">        </span><span class=\"s2\" position_id=\"450\">&quot;Immortality&quot;</span><span class=\"p\" position_id=\"451\">,</span></span><span id=\"__span-3-34\" position_id=\"452\"><a id=\"__codelineno-3-34\" name=\"__codelineno-3-34\" position_id=\"453\"/><span class=\"w\" position_id=\"454\">        </span><span class=\"s2\" position_id=\"455\">&quot;Heat Immunity&quot;</span><span class=\"p\" position_id=\"456\">,</span></span><span id=\"__span-3-35\" position_id=\"457\"><a id=\"__codelineno-3-35\" name=\"__codelineno-3-35\" position_id=\"458\"/><span class=\"w\" position_id=\"459\">        </span><span class=\"s2\" position_id=\"460\">&quot;Inferno&quot;</span><span class=\"p\" position_id=\"461\">,</span></span><span id=\"__span-3-36\" position_id=\"462\"><a id=\"__codelineno-3-36\" name=\"__codelineno-3-36\" position_id=\"463\"/><span class=\"w\" position_id=\"464\">        </span><span class=\"s2\" position_id=\"465\">&quot;Teleportation&quot;</span><span class=\"p\" position_id=\"466\">,</span></span><span id=\"__span-3-37\" position_id=\"467\"><a id=\"__codelineno-3-37\" name=\"__codelineno-3-37\" position_id=\"468\"/><span class=\"w\" position_id=\"469\">        </span><span class=\"s2\" position_id=\"470\">&quot;Interdimensional travel&quot;</span></span><span id=\"__span-3-38\" position_id=\"471\"><a id=\"__codelineno-3-38\" name=\"__codelineno-3-38\" position_id=\"472\"/><span class=\"w\" position_id=\"473\">      </span><span class=\"p\" position_id=\"474\">]</span></span><span id=\"__span-3-39\" position_id=\"475\"><a id=\"__codelineno-3-39\" name=\"__codelineno-3-39\" position_id=\"476\"/><span class=\"w\" position_id=\"477\">    </span><span class=\"p\" position_id=\"478\">}</span></span><span id=\"__span-3-40\" position_id=\"479\"><a id=\"__codelineno-3-40\" name=\"__codelineno-3-40\" position_id=\"480\"/><span class=\"w\" position_id=\"481\">  </span><span class=\"p\" position_id=\"482\">]</span></span><span id=\"__span-3-41\" position_id=\"483\"><a id=\"__codelineno-3-41\" name=\"__codelineno-3-41\" position_id=\"484\"/><span class=\"p\" position_id=\"485\">}</span></span></code></pre></div></td></tr></tbody></table>", "language": "english", "position": {"atoms": [{"position_id": 151, "txt": "<table <table class=\"highlighttable\" position_id=\"151\"><tbody position_id=\"152\"><tr position_id=\"153\"><th class=\"filename\" colspan=\"2\" position_id=\"154\"><span class=\"filename\" position_id=\"155\">Example with JSON of superheroes</span></th></tr><tr position_id=\"156\"><td class=\"linenos\" position_id=\"157\"><div class=\"linenodiv\" position_id=\"158\"/></td><td class=\"code\" position_id=\"243\"><div position_id=\"244\"><pre id=\"__code_3\" position_id=\"245\"><span position_id=\"246\"/><code class=\"md-code__content\" position_id=\"247\"><span id=\"__span-3-1\" position_id=\"248\"><a id=\"__codelineno-3-1\" name=\"__codelineno-3-1\" position_id=\"249\"/><span class=\"p\" position_id=\"250\">{</span>\n</span><span id=\"__span-3-2\" position_id=\"251\"><a id=\"__codelineno-3-2\" name=\"__codelineno-3-2\" position_id=\"252\"/><span class=\"w\" position_id=\"253\">  </span><span class=\"nt\" position_id=\"254\">&quot;squadName&quot;</span><span class=\"p\" position_id=\"255\">:</span><span class=\"w\" position_id=\"256\"> </span><span class=\"s2\" position_id=\"257\">&quot;Super hero squad&quot;</span><span class=\"p\" position_id=\"258\">,</span>\n</span><span id=\"__span-3-3\" position_id=\"259\"><a id=\"__codelineno-3-3\" name=\"__codelineno-3-3\" position_id=\"260\"/><span class=\"w\" position_id=\"261\">  </span><span class=\"nt\" position_id=\"262\">&quot;homeTown&quot;</span><span class=\"p\" position_id=\"263\">:</span><span class=\"w\" position_id=\"264\"> </span><span class=\"s2\" position_id=\"265\">&quot;Metro City&quot;</span><span class=\"p\" position_id=\"266\">,</span>\n</span><span id=\"__span-3-4\" position_id=\"267\"><a id=\"__codelineno-3-4\" name=\"__codelineno-3-4\" position_id=\"268\"/><span class=\"w\" position_id=\"269\">  </span><span class=\"nt\" position_id=\"270\">&quot;formed&quot;</span><span class=\"p\" position_id=\"271\">:</span><span class=\"w\" position_id=\"272\"> </span><span class=\"mi\" position_id=\"273\">2016</span><span class=\"p\" position_id=\"274\">,</span>\n</span><span id=\"__span-3-5\" position_id=\"275\"><a id=\"__codelineno-3-5\" name=\"__codelineno-3-5\" position_id=\"276\"/><span class=\"w\" position_id=\"277\">  </span><span class=\"nt\" position_id=\"278\">&quot;secretBase&quot;</span><span class=\"p\" position_id=\"279\">:</span><span class=\"w\" position_id=\"280\"> </span><span class=\"s2\" position_id=\"281\">&quot;Super tower&quot;</span><span class=\"p\" position_id=\"282\">,</span>\n</span><span id=\"__span-3-6\" position_id=\"283\"><a id=\"__codelineno-3-6\" name=\"__codelineno-3-6\" position_id=\"284\"/><span class=\"w\" position_id=\"285\">  </span><span class=\"nt\" position_id=\"286\">&quot;active&quot;</span><span class=\"p\" position_id=\"287\">:</span><span class=\"w\" position_id=\"288\"> </span><span class=\"kc\" position_id=\"289\">true</span><span class=\"p\" position_id=\"290\">,</span>\n</span><span id=\"__span-3-7\" position_id=\"291\"><a id=\"__codelineno-3-7\" name=\"__codelineno-3-7\" position_id=\"292\"/><span class=\"w\" position_id=\"293\">  </span><span class=\"nt\" position_id=\"294\">&quot;members&quot;</span><span class=\"p\" position_id=\"295\">:</span><span class=\"w\" position_id=\"296\"> </span><span class=\"p\" position_id=\"297\">[</span>\n</span><span id=\"__span-3-8\" position_id=\"298\"><a id=\"__codelineno-3-8\" name=\"__codelineno-3-8\" position_id=\"299\"/><span class=\"w\" position_id=\"300\">    </span><span class=\"p\" position_id=\"301\">{</span>\n</span><span id=\"__span-3-9\" position_id=\"302\"><a id=\"__codelineno-3-9\" name=\"__codelineno-3-9\" position_id=\"303\"/><span class=\"w\" position_id=\"304\">      </span><span class=\"nt\" position_id=\"305\">&quot;name&quot;</span><span class=\"p\" position_id=\"306\">:</span><span class=\"w\" position_id=\"307\"> </span><span class=\"s2\" position_id=\"308\">&quot;Molecule Man&quot;</span><span class=\"p\" position_id=\"309\">,</span>\n</span><span id=\"__span-3-10\" position_id=\"310\"><a id=\"__codelineno-3-10\" name=\"__codelineno-3-10\" position_id=\"311\"/><span class=\"w\" position_id=\"312\">      </span><span class=\"nt\" position_id=\"313\">&quot;age&quot;</span><span class=\"p\" position_id=\"314\">:</span><span class=\"w\" position_id=\"315\"> </span><span class=\"mi\" position_id=\"316\">29</span><span class=\"p\" position_id=\"317\">,</span>\n</span><span id=\"__span-3-11\" position_id=\"318\"><a id=\"__codelineno-3-11\" name=\"__codelineno-3-11\" position_id=\"319\"/><span class=\"w\" position_id=\"320\">      </span><span class=\"nt\" position_id=\"321\">&quot;secretIdentity&quot;</span><span class=\"p\" position_id=\"322\">:</span><span class=\"w\" position_id=\"323\"> </span><span class=\"s2\" position_id=\"324\">&quot;Dan Jukes&quot;</span><span class=\"p\" position_id=\"325\">,</span>\n</span><span id=\"__span-3-12\" position_id=\"326\"><a id=\"__codelineno-3-12\" name=\"__codelineno-3-12\" position_id=\"327\"/><span class=\"w\" position_id=\"328\">      </span><span class=\"nt\" position_id=\"329\">&quot;powers&quot;</span><span class=\"p\" position_id=\"330\">:</span><span class=\"w\" position_id=\"331\"> </span><span class=\"p\" position_id=\"332\">[</span>\n</span><span id=\"__span-3-13\" position_id=\"333\"><a id=\"__codelineno-3-13\" name=\"__codelineno-3-13\" position_id=\"334\"/><span class=\"w\" position_id=\"335\">        </span><span class=\"s2\" position_id=\"336\">&quot;Radiation resistance&quot;</span><span class=\"p\" position_id=\"337\">,</span>\n</span><span id=\"__span-3-14\" position_id=\"338\"><a id=\"__codelineno-3-14\" name=\"__codelineno-3-14\" position_id=\"339\"/><span class=\"w\" position_id=\"340\">        </span><span class=\"s2\" position_id=\"341\">&quot;Turning tiny&quot;</span><span class=\"p\" position_id=\"342\">,</span>\n</span><span id=\"__span-3-15\" position_id=\"343\"><a id=\"__codelineno-3-15\" name=\"__codelineno-3-15\" position_id=\"344\"/><span class=\"w\" position_id=\"345\">        </span><span class=\"s2\" position_id=\"346\">&quot;Radiation blast&quot;</span>\n</span><span id=\"__span-3-16\" position_id=\"347\"><a id=\"__codelineno-3-16\" name=\"__codelineno-3-16\" position_id=\"348\"/><span class=\"w\" position_id=\"349\">      </span><span class=\"p\" position_id=\"350\">]</span>\n</span><span id=\"__span-3-17\" position_id=\"351\"><a id=\"__codelineno-3-17\" name=\"__codelineno-3-17\" position_id=\"352\"/><span class=\"w\" position_id=\"353\">    </span><span class=\"p\" position_id=\"354\">},</span>\n</span><span id=\"__span-3-18\" position_id=\"355\"><a id=\"__codelineno-3-18\" name=\"__codelineno-3-18\" position_id=\"356\"/><span class=\"w\" position_id=\"357\">    </span><span class=\"p\" position_id=\"358\">{</span>\n</span><span id=\"__span-3-19\" position_id=\"359\"><a id=\"__codelineno-3-19\" name=\"__codelineno-3-19\" position_id=\"360\"/><span class=\"w\" position_id=\"361\">      </span><span class=\"nt\" position_id=\"362\">&quot;name&quot;</span><span class=\"p\" position_id=\"363\">:</span><span class=\"w\" position_id=\"364\"> </span><span class=\"s2\" position_id=\"365\">&quot;Madame Uppercut&quot;</span><span class=\"p\" position_id=\"366\">,</span>\n</span><span id=\"__span-3-20\" position_id=\"367\"><a id=\"__codelineno-3-20\" name=\"__codelineno-3-20\" position_id=\"368\"/><span class=\"w\" position_id=\"369\">      </span><span class=\"nt\" position_id=\"370\">&quot;age&quot;</span><span class=\"p\" position_id=\"371\">:</span><span class=\"w\" position_id=\"372\"> </span><span class=\"mi\" position_id=\"373\">39</span><span class=\"p\" position_id=\"374\">,</span>\n</span><span id=\"__span-3-21\" position_id=\"375\"><a id=\"__codelineno-3-21\" name=\"__codelineno-3-21\" position_id=\"376\"/><span class=\"w\" position_id=\"377\">      </span><span class=\"nt\" position_id=\"378\">&quot;secretIdentity&quot;</span><span class=\"p\" position_id=\"379\">:</span><span class=\"w\" position_id=\"380\"> </span><span class=\"s2\" position_id=\"381\">&quot;Jane Wilson&quot;</span><span class=\"p\" position_id=\"382\">,</span>\n</span><span id=\"__span-3-22\" position_id=\"383\"><a id=\"__codelineno-3-22\" name=\"__codelineno-3-22\" position_id=\"384\"/><span class=\"w\" position_id=\"385\">      </span><span class=\"nt\" position_id=\"386\">&quot;powers&quot;</span><span class=\"p\" position_id=\"387\">:</span><span class=\"w\" position_id=\"388\"> </span><span class=\"p\" position_id=\"389\">[</span>\n</span><span id=\"__span-3-23\" position_id=\"390\"><a id=\"__codelineno-3-23\" name=\"__codelineno-3-23\" position_id=\"391\"/><span class=\"w\" position_id=\"392\">        </span><span class=\"s2\" position_id=\"393\">&quot;Million tonne punch&quot;</span><span class=\"p\" position_id=\"394\">,</span>\n</span><span id=\"__span-3-24\" position_id=\"395\"><a id=\"__codelineno-3-24\" name=\"__codelineno-3-24\" position_id=\"396\"/><span class=\"w\" position_id=\"397\">        </span><span class=\"s2\" position_id=\"398\">&quot;Damage resistance&quot;</span><span class=\"p\" position_id=\"399\">,</span>\n</span><span id=\"__span-3-25\" position_id=\"400\"><a id=\"__codelineno-3-25\" name=\"__codelineno-3-25\" position_id=\"401\"/><span class=\"w\" position_id=\"402\">        </span><span class=\"s2\" position_id=\"403\">&quot;Superhuman reflexes&quot;</span>\n</span><span id=\"__span-3-26\" position_id=\"404\"><a id=\"__codelineno-3-26\" name=\"__codelineno-3-26\" position_id=\"405\"/><span class=\"w\" position_id=\"406\">      </span><span class=\"p\" position_id=\"407\">]</span>\n</span><span id=\"__span-3-27\" position_id=\"408\"><a id=\"__codelineno-3-27\" name=\"__codelineno-3-27\" position_id=\"409\"/><span class=\"w\" position_id=\"410\">    </span><span class=\"p\" position_id=\"411\">},</span>\n</span><span id=\"__span-3-28\" position_id=\"412\"><a id=\"__codelineno-3-28\" name=\"__codelineno-3-28\" position_id=\"413\"/><span class=\"w\" position_id=\"414\">    </span><span class=\"p\" position_id=\"415\">{</span>\n</span><span id=\"__span-3-29\" position_id=\"416\"><a id=\"__codelineno-3-29\" name=\"__codelineno-3-29\" position_id=\"417\"/><span class=\"w\" position_id=\"418\">      </span><span class=\"nt\" position_id=\"419\">&quot;name&quot;</span><span class=\"p\" position_id=\"420\">:</span><span class=\"w\" position_id=\"421\"> </span><span class=\"s2\" position_id=\"422\">&quot;Eternal Flame&quot;</span><span class=\"p\" position_id=\"423\">,</span>\n</span><span id=\"__span-3-30\" position_id=\"424\"><a id=\"__codelineno-3-30\" name=\"__codelineno-3-30\" position_id=\"425\"/><span class=\"w\" position_id=\"426\">      </span><span class=\"nt\" position_id=\"427\">&quot;age&quot;</span><span class=\"p\" position_id=\"428\">:</span><span class=\"w\" position_id=\"429\"> </span><span class=\"mi\" position_id=\"430\">1000000</span><span class=\"p\" position_id=\"431\">,</span>\n</span><span id=\"__span-3-31\" position_id=\"432\"><a id=\"__codelineno-3-31\" name=\"__codelineno-3-31\" position_id=\"433\"/><span class=\"w\" position_id=\"434\">      </span><span class=\"nt\" position_id=\"435\">&quot;secretIdentity&quot;</span><span class=\"p\" position_id=\"436\">:</span><span class=\"w\" position_id=\"437\"> </span><span class=\"s2\" position_id=\"438\">&quot;Unknown&quot;</span><span class=\"p\" position_id=\"439\">,</span>\n</span><span id=\"__span-3-32\" position_id=\"440\"><a id=\"__codelineno-3-32\" name=\"__codelineno-3-32\" position_id=\"441\"/><span class=\"w\" position_id=\"442\">      </span><span class=\"nt\" position_id=\"443\">&quot;powers&quot;</span><span class=\"p\" position_id=\"444\">:</span><span class=\"w\" position_id=\"445\"> </span><span class=\"p\" position_id=\"446\">[</span>\n</span><span id=\"__span-3-33\" position_id=\"447\"><a id=\"__codelineno-3-33\" name=\"__codelineno-3-33\" position_id=\"448\"/><span class=\"w\" position_id=\"449\">        </span><span class=\"s2\" position_id=\"450\">&quot;Immortality&quot;</span><span class=\"p\" position_id=\"451\">,</span>\n</span><span id=\"__span-3-34\" position_id=\"452\"><a id=\"__codelineno-3-34\" name=\"__codelineno-3-34\" position_id=\"453\"/><span class=\"w\" position_id=\"454\">        </span><span class=\"s2\" position_id=\"455\">&quot;Heat Immunity&quot;</span><span class=\"p\" position_id=\"456\">,</span>\n</span><span id=\"__span-3-35\" position_id=\"457\"><a id=\"__codelineno-3-35\" name=\"__codelineno-3-35\" position_id=\"458\"/><span class=\"w\" position_id=\"459\">        </span><span class=\"s2\" position_id=\"460\">&quot;Inferno&quot;</span><span class=\"p\" position_id=\"461\">,</span>\n</span><span id=\"__span-3-36\" position_id=\"462\"><a id=\"__codelineno-3-36\" name=\"__codelineno-3-36\" position_id=\"463\"/><span class=\"w\" position_id=\"464\">        </span><span class=\"s2\" position_id=\"465\">&quot;Teleportation&quot;</span><span class=\"p\" position_id=\"466\">,</span>\n</span><span id=\"__span-3-37\" position_id=\"467\"><a id=\"__codelineno-3-37\" name=\"__codelineno-3-37\" position_id=\"468\"/><span class=\"w\" position_id=\"469\">        </span><span class=\"s2\" position_id=\"470\">&quot;Interdimensional travel&quot;</span>\n</span><span id=\"__span-3-38\" position_id=\"471\"><a id=\"__codelineno-3-38\" name=\"__codelineno-3-38\" position_id=\"472\"/><span class=\"w\" position_id=\"473\">      </span><span class=\"p\" position_id=\"474\">]</span>\n</span><span id=\"__span-3-39\" position_id=\"475\"><a id=\"__codelineno-3-39\" name=\"__codelineno-3-39\" position_id=\"476\"/><span class=\"w\" position_id=\"477\">    </span><span class=\"p\" position_id=\"478\">}</span>\n</span><span id=\"__span-3-40\" position_id=\"479\"><a id=\"__codelineno-3-40\" name=\"__codelineno-3-40\" position_id=\"480\"/><span class=\"w\" position_id=\"481\">  </span><span class=\"p\" position_id=\"482\">]</span>\n</span><span id=\"__span-3-41\" position_id=\"483\"><a id=\"__codelineno-3-41\" name=\"__codelineno-3-41\" position_id=\"484\"/><span class=\"p\" position_id=\"485\">}</span>\n</span></code></pre></div></td></tr></tbody></table>", "x": "/html/body/div[3]/main/div/div[3]/article/div[5]/table"}]}, "tags": ["table"], "label": "table", "web_segment_id": 19, "global_sentence_id": 33, "edu_l1_label": "EDU_O"}, {"txt": "An example from the Mozilla site, which will give you a better idea.", "language": "english", "position": {"atoms": [{"position_id": 3805, "txt": "An example from the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]"}, {"position_id": 3807, "txt": "Mozilla", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[1]"}, {"position_id": 3809, "txt": " site, which will give you a better idea.", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[1]"}]}, "tags": [], "label": "content", "web_segment_id": 20, "global_sentence_id": 34, "edu_l1_label": "IOS"}, {"txt": " You can also consult the wikipedia article or the infamous specification site.", "language": "english", "position": {"atoms": [{"position_id": 3810, "txt": " You can also consult the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[1]"}, {"position_id": 3812, "txt": "wikipedia", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[2]"}, {"position_id": 3814, "txt": " article or ", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[2]"}, {"position_id": 3816, "txt": "the infamous specification site", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[3]"}, {"position_id": 3818, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[10]/a[3]"}]}, "tags": [], "label": "content", "web_segment_id": 20, "global_sentence_id": 35, "edu_l1_label": "IOS"}, {"txt": "PostgreSQL's json types#", "language": "english", "position": {"atoms": [{"position_id": 3820, "txt": "PostgreSQL's json types", "x": "/html/body/div[3]/main/div/div[3]/article/h2[2]"}, {"position_id": 3822, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[2]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 21, "global_sentence_id": 36, "edu_l1_label": "BOS"}, {"txt": "PostgreSQL is able to store data/objects in json format in fields that are assigned a dedicated type.", "language": "english", "position": {"atoms": [{"position_id": 3824, "txt": "PostgreSQL is able to store data/objects in json format in fields that are assigned a dedicated type.", "x": "/html/body/div[3]/main/div/div[3]/article/p[11]"}]}, "tags": [], "label": "content", "web_segment_id": 22, "global_sentence_id": 37, "edu_l1_label": "IOS"}, {"txt": " There are two types, because otherwise it wouldn't be any fun.", "language": "english", "position": {"atoms": [{"position_id": 3825, "txt": " There are two types, because otherwise it wouldn't be any fun.", "x": "/html/body/div[3]/main/div/div[3]/article/p[11]"}]}, "tags": [], "label": "content", "web_segment_id": 22, "global_sentence_id": 38, "edu_l1_label": "IOS"}, {"txt": "The json type is there for historical reasons, to allow databases that used this type in the past to function.", "language": "english", "position": {"atoms": [{"position_id": 3827, "txt": "The ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p"}, {"position_id": 3829, "txt": "json", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[1]"}, {"position_id": 3831, "txt": " type is there for historical reasons, to allow databases that used this type in the past to function.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 23, "global_sentence_id": 39, "edu_l1_label": "IOS"}, {"txt": " It stores information in text form, which is not optimized for a computer.", "language": "english", "position": {"atoms": [{"position_id": 3832, "txt": " It stores information in text form, which is not optimized for a computer.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 23, "global_sentence_id": 40, "edu_l1_label": "IOS"}, {"txt": " There is, however, an advantage to using it:", "language": "english", "position": {"atoms": [{"position_id": 3833, "txt": " There is, however, an advantage to using it:", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 23, "global_sentence_id": 41, "edu_l1_label": "IOS"}, {"txt": " it allows you to retrieve information on key order.", "language": "english", "position": {"atoms": [{"position_id": 3834, "txt": " it allows you to retrieve information on key order.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 23, "global_sentence_id": 42, "edu_l1_label": "IOS"}, {"txt": " If it's important for you to know that name is key 1 and firstname is key 2, without having to go through the key name again, then you'll need to use the json type.", "language": "english", "position": {"atoms": [{"position_id": 3835, "txt": " If it's important for you to know that ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[1]"}, {"position_id": 3837, "txt": "name", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[2]"}, {"position_id": 3839, "txt": " is key 1 and ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[2]"}, {"position_id": 3841, "txt": "firstname", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[3]"}, {"position_id": 3843, "txt": " is key 2, without having to go through the key name again, then you'll need to use the ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[3]"}, {"position_id": 3845, "txt": "json", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[4]"}, {"position_id": 3847, "txt": " type.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[1]/p/code[4]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 23, "global_sentence_id": 43, "edu_l1_label": "IOS"}, {"txt": "the jsonb type.", "language": "english", "position": {"atoms": [{"position_id": 3849, "txt": "the ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p"}, {"position_id": 3851, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p/code[1]"}, {"position_id": 3853, "txt": " type.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p/code[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 24, "global_sentence_id": 44, "edu_l1_label": "IOS"}, {"txt": " The modern type.", "language": "english", "position": {"atoms": [{"position_id": 3854, "txt": " The modern type.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p/code[1]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 24, "global_sentence_id": 45, "edu_l1_label": "IOS"}, {"txt": " It stores information in binary form and offers a lot of functions in addition to those of the json type.", "language": "english", "position": {"atoms": [{"position_id": 3855, "txt": " It stores information in binary form and offers a lot of functions in addition to those of the ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p/code[1]"}, {"position_id": 3857, "txt": "json", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p/code[2]"}, {"position_id": 3859, "txt": " type.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[2]/li[2]/p/code[2]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 24, "global_sentence_id": 46, "edu_l1_label": "IOS"}, {"txt": "Indexes#", "language": "english", "position": {"atoms": [{"position_id": 3861, "txt": "Indexes", "x": "/html/body/div[3]/main/div/div[3]/article/h2[3]"}, {"position_id": 3863, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[3]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 25, "global_sentence_id": 47, "edu_l1_label": "BOS"}, {"txt": "It is possible to index a json / jsonb field on its first-level keys, and this is done with GIN type indexes:", "language": "english", "position": {"atoms": [{"position_id": 3865, "txt": "It is possible to index a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]"}, {"position_id": 3867, "txt": "json", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/code[1]"}, {"position_id": 3869, "txt": " / ", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/code[1]"}, {"position_id": 3871, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/code[2]"}, {"position_id": 3873, "txt": " field on its ", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/code[2]"}, {"position_id": 3875, "txt": "first-level", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/strong"}, {"position_id": 3877, "txt": " keys, and this is done with ", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/strong"}, {"position_id": 3879, "txt": "GIN", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/a/code"}, {"position_id": 3881, "txt": " type indexes:", "x": "/html/body/div[3]/main/div/div[3]/article/p[13]/a"}]}, "tags": ["strong"], "label": "content", "web_segment_id": 26, "global_sentence_id": 48, "edu_l1_label": "IOS"}, {"txt": "CREATEINDEXidx_tb_jsonfieldONtbUSINGgin(jsonfiled);", "language": "english", "position": {"atoms": [{"position_id": 3883, "txt": "CREATE", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[1]"}, {"position_id": 3885, "txt": "INDEX", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[3]"}, {"position_id": 3887, "txt": "idx_tb_jsonfield", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[5]"}, {"position_id": 3889, "txt": "ON", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[7]"}, {"position_id": 3891, "txt": "tb", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[9]"}, {"position_id": 3893, "txt": "USING", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[11]"}, {"position_id": 3895, "txt": "gin", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[13]"}, {"position_id": 3897, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[15]"}, {"position_id": 3899, "txt": "jsonfiled", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[16]"}, {"position_id": 3901, "txt": ");", "x": "/html/body/div[3]/main/div/div[3]/article/div[6]/pre/code/span/span[17]"}]}, "tags": [], "label": "code", "web_segment_id": 27, "global_sentence_id": 49, "edu_l1_label": "IOS"}, {"txt": "To index “deeper” values, you'll need to use functional indexes, indexes on functions:", "language": "english", "position": {"atoms": [{"position_id": 3903, "txt": "To index “deeper” values, you'll need to use functional indexes, indexes on functions:", "x": "/html/body/div[3]/main/div/div[3]/article/p[14]"}]}, "tags": [], "label": "content", "web_segment_id": 28, "global_sentence_id": 50, "edu_l1_label": "IOS"}, {"txt": "CREATEINDEXidx_tb_jsonfieldONtbUSINGgin(jsonfield->key_to_locate_values_to_be_index);", "language": "english", "position": {"atoms": [{"position_id": 3905, "txt": "CREATE", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[1]"}, {"position_id": 3907, "txt": "INDEX", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[3]"}, {"position_id": 3909, "txt": "idx_tb_jsonfield", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[5]"}, {"position_id": 3911, "txt": "ON", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[7]"}, {"position_id": 3913, "txt": "tb", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[9]"}, {"position_id": 3915, "txt": "USING", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[11]"}, {"position_id": 3917, "txt": "gin", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[13]"}, {"position_id": 3919, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[15]"}, {"position_id": 3921, "txt": "jsonfield", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[16]"}, {"position_id": 3923, "txt": "->", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[18]"}, {"position_id": 3925, "txt": "key_to_locate_values_to_be_index", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[20]"}, {"position_id": 3927, "txt": ");", "x": "/html/body/div[3]/main/div/div[3]/article/div[7]/pre/code/span/span[21]"}]}, "tags": [], "label": "code", "web_segment_id": 29, "global_sentence_id": 51, "edu_l1_label": "IOS"}, {"txt": "We'll explain this -> later.", "language": "english", "position": {"atoms": [{"position_id": 3929, "txt": "We'll explain this ", "x": "/html/body/div[3]/main/div/div[3]/article/p[15]"}, {"position_id": 3931, "txt": "->", "x": "/html/body/div[3]/main/div/div[3]/article/p[15]/code"}, {"position_id": 3933, "txt": " later.", "x": "/html/body/div[3]/main/div/div[3]/article/p[15]/code"}]}, "tags": [], "label": "content", "web_segment_id": 30, "global_sentence_id": 52, "edu_l1_label": "IOS"}, {"txt": "For the adventurous, there's a PostgreSQL extension called btree_gin that allows you to create multi-field indexes mixing classic and json fields.", "language": "english", "position": {"atoms": [{"position_id": 3935, "txt": "For the adventurous, there's a PostgreSQL extension called ", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]"}, {"position_id": 3937, "txt": "btree_gin", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]/code[1]"}, {"position_id": 3939, "txt": " that allows you to create multi-field indexes mixing classic and ", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]/code[1]"}, {"position_id": 3941, "txt": "json", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]/code[2]"}, {"position_id": 3943, "txt": " fields.", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 31, "global_sentence_id": 53, "edu_l1_label": "IOS"}, {"txt": " It's available natively when you install PostgreSQL, and won't require you to become a C/C++ developer⸱se to install it (hello parquet FDW !", "language": "english", "position": {"atoms": [{"position_id": 3944, "txt": " It's available natively when you install PostgreSQL, and won't require you to become a C/C++ developer⸱se to install it (hello parquet FDW !", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 31, "global_sentence_id": 54, "edu_l1_label": "IOS"}, {"txt": " How's it going over there?).", "language": "english", "position": {"atoms": [{"position_id": 3945, "txt": " How's it going over there?).", "x": "/html/body/div[3]/main/div/div[3]/article/p[16]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 31, "global_sentence_id": 55, "edu_l1_label": "IOS"}, {"txt": "Table creation#", "language": "english", "position": {"atoms": [{"position_id": 3947, "txt": "Table creation", "x": "/html/body/div[3]/main/div/div[3]/article/h2[4]"}, {"position_id": 3949, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[4]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 32, "global_sentence_id": 56, "edu_l1_label": "BOS"}, {"txt": "I'm not going to spam you with Data Definition Language (https://en.wikipedia.org/wiki/Data_definition_language), but you can find the complete database schema here.", "language": "english", "position": {"atoms": [{"position_id": 3951, "txt": "I'm not going to spam you with Data Definition Language (", "x": "/html/body/div[3]/main/div/div[3]/article/p[17]"}, {"position_id": 3953, "txt": "https://en.wikipedia.org/wiki/Data_definition_language", "x": "/html/body/div[3]/main/div/div[3]/article/p[17]/a[1]"}, {"position_id": 3955, "txt": "), but you can find the complete database schema ", "x": "/html/body/div[3]/main/div/div[3]/article/p[17]/a[1]"}, {"position_id": 3957, "txt": "here", "x": "/html/body/div[3]/main/div/div[3]/article/p[17]/a[2]"}, {"position_id": 3959, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[17]/a[2]"}]}, "tags": [], "label": "content", "web_segment_id": 33, "global_sentence_id": 57, "edu_l1_label": "IOS"}, {"txt": "However, here's a brief diagram to help you understand the rest of the article:", "language": "english", "position": {"atoms": [{"position_id": 3961, "txt": "However, here's a brief diagram to help you understand the rest of the article:", "x": "/html/body/div[3]/main/div/div[3]/article/p[18]"}]}, "tags": [], "label": "content", "web_segment_id": 34, "global_sentence_id": 58, "edu_l1_label": "IOS"}, {"txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/2TW6pB4tR5O743iPWG4tQSU2.png", "language": "english", "position": {"atoms": [{"position_id": 579, "txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/2TW6pB4tR5O743iPWG4tQSU2.png", "x": "/html/body/div[3]/main/div/div[3]/article/p[19]/a/img"}]}, "tags": ["img"], "label": "figure", "web_segment_id": 35, "global_sentence_id": 59, "edu_l1_label": "EDU_O"}, {"txt": "*Don't worry about the stacked tables on the right, they're partitions of the donnees_communes table.", "language": "english", "position": {"atoms": [{"position_id": 3963, "txt": "*", "x": "/html/body/div[3]/main/div/div[3]/article/p[20]"}, {"position_id": 3965, "txt": "Don't worry about the stacked tables on the right, they're partitions of the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[20]/em"}, {"position_id": 3967, "txt": "donnees_communes", "x": "/html/body/div[3]/main/div/div[3]/article/p[20]/em/code"}, {"position_id": 3969, "txt": " table.", "x": "/html/body/div[3]/main/div/div[3]/article/p[20]/em/code"}]}, "tags": ["em"], "label": "content", "web_segment_id": 36, "global_sentence_id": 60, "edu_l1_label": "IOS"}, {"txt": " We won't go into them here, and they're only needed for the example.", "language": "english", "position": {"atoms": [{"position_id": 3970, "txt": " We won't go into them here, and they're only needed for the example", "x": "/html/body/div[3]/main/div/div[3]/article/p[20]/em/code"}, {"position_id": 3972, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[20]/em"}]}, "tags": ["em"], "label": "content", "web_segment_id": 36, "global_sentence_id": 61, "edu_l1_label": "EDU_O"}, {"txt": "Starting from a schema named insee, we'll create two tables:", "language": "english", "position": {"atoms": [{"position_id": 3974, "txt": "Starting from a schema named ", "x": "/html/body/div[3]/main/div/div[3]/article/p[21]"}, {"position_id": 3976, "txt": "insee", "x": "/html/body/div[3]/main/div/div[3]/article/p[21]/code"}, {"position_id": 3978, "txt": ", we'll create two tables:", "x": "/html/body/div[3]/main/div/div[3]/article/p[21]/code"}]}, "tags": [], "label": "content", "web_segment_id": 37, "global_sentence_id": 62, "edu_l1_label": "IOS"}, {"txt": "the first will contain the list of available bases, the various census components ;", "language": "english", "position": {"atoms": [{"position_id": 3980, "txt": "the first will contain the list of available ", "x": "/html/body/div[3]/main/div/div[3]/article/ul[3]/li[1]"}, {"position_id": 3982, "txt": "bases", "x": "/html/body/div[3]/main/div/div[3]/article/ul[3]/li[1]/em"}, {"position_id": 3984, "txt": ", the various census components ;", "x": "/html/body/div[3]/main/div/div[3]/article/ul[3]/li[1]/em"}]}, "tags": ["li", "em"], "label": "content", "web_segment_id": 38, "global_sentence_id": 63, "edu_l1_label": "IOS"}, {"txt": "the second will store the data.", "language": "english", "position": {"atoms": [{"position_id": 3986, "txt": "the second will store the data.", "x": "/html/body/div[3]/main/div/div[3]/article/ul[3]/li[2]"}]}, "tags": ["li"], "label": "content", "web_segment_id": 39, "global_sentence_id": 64, "edu_l1_label": "IOS"}, {"txt": "To keep the focus on JSON, we'll spare ourselves 95% of the underlying model.", "language": "english", "position": {"atoms": [{"position_id": 3988, "txt": "To keep the focus on JSON, we'll spare ourselves 95% of the underlying model.", "x": "/html/body/div[3]/main/div/div[3]/article/p[22]"}]}, "tags": [], "label": "content", "web_segment_id": 40, "global_sentence_id": 65, "edu_l1_label": "IOS"}, {"txt": " So we won't be handling commune codes, etc. :", "language": "english", "position": {"atoms": [{"position_id": 3989, "txt": " So we won't be handling commune codes, etc. :", "x": "/html/body/div[3]/main/div/div[3]/article/p[22]"}]}, "tags": [], "label": "content", "web_segment_id": 40, "global_sentence_id": 66, "edu_l1_label": "IOS"}, {"txt": "<table <table class=\"highlighttable\" position_id=\"591\"><tbody position_id=\"592\"><tr position_id=\"593\"><th class=\"filename\" colspan=\"2\" position_id=\"594\"><span class=\"filename\" position_id=\"595\">Table creation Script</span></th></tr><tr position_id=\"596\"><td class=\"linenos\" position_id=\"597\"><div class=\"linenodiv\" position_id=\"598\"/></td><td class=\"code\" position_id=\"649\"><div position_id=\"650\"><pre id=\"__code_6\" position_id=\"651\"><span position_id=\"652\"/><code class=\"md-code__content\" tabindex=\"0\" position_id=\"653\"><span id=\"__span-6-1\" position_id=\"654\"><a id=\"__codelineno-6-1\" name=\"__codelineno-6-1\" position_id=\"655\"/><span class=\"k\" position_id=\"656\">BEGIN</span><span class=\"p\" position_id=\"657\">;</span></span><span id=\"__span-6-2\" position_id=\"658\"><a id=\"__codelineno-6-2\" name=\"__codelineno-6-2\" position_id=\"659\"/><span class=\"c1\" position_id=\"660\">-- table listing the various Insee databases available</span></span><span id=\"__span-6-3\" position_id=\"661\"><a id=\"__codelineno-6-3\" name=\"__codelineno-6-3\" position_id=\"662\"/></span><span id=\"__span-6-4\" position_id=\"663\"><a id=\"__codelineno-6-4\" name=\"__codelineno-6-4\" position_id=\"664\"/><span class=\"k\" position_id=\"665\">CREATE</span><span class=\"w\" position_id=\"666\"> </span><span class=\"k\" position_id=\"667\">TABLE</span><span class=\"w\" position_id=\"668\"> </span><span class=\"n\" position_id=\"669\">insee</span><span class=\"p\" position_id=\"670\">.</span><span class=\"n\" position_id=\"671\">bases</span><span class=\"w\" position_id=\"672\"> </span><span class=\"p\" position_id=\"673\">(</span></span><span id=\"__span-6-5\" position_id=\"674\"><a id=\"__codelineno-6-5\" name=\"__codelineno-6-5\" position_id=\"675\"/><span class=\"n\" position_id=\"676\">pk_id</span><span class=\"w\" position_id=\"677\"> </span><span class=\"n\" position_id=\"678\">int2</span><span class=\"w\" position_id=\"679\"> </span><span class=\"k\" position_id=\"680\">PRIMARY</span><span class=\"w\" position_id=\"681\"> </span><span class=\"k\" position_id=\"682\">KEY</span><span class=\"w\" position_id=\"683\"> </span><span class=\"k\" position_id=\"684\">GENERATED</span><span class=\"w\" position_id=\"685\"> </span><span class=\"k\" position_id=\"686\">BY</span><span class=\"w\" position_id=\"687\"> </span><span class=\"k\" position_id=\"688\">DEFAULT</span><span class=\"w\" position_id=\"689\"> </span><span class=\"k\" position_id=\"690\">AS</span><span class=\"w\" position_id=\"691\"> </span><span class=\"k\" position_id=\"692\">IDENTITY</span><span class=\"p\" position_id=\"693\">,</span></span><span id=\"__span-6-6\" position_id=\"694\"><a id=\"__codelineno-6-6\" name=\"__codelineno-6-6\" position_id=\"695\"/><span class=\"n\" position_id=\"696\">nom</span><span class=\"w\" position_id=\"697\"> </span><span class=\"nb\" position_id=\"698\">text</span><span class=\"w\" position_id=\"699\"> </span><span class=\"k\" position_id=\"700\">NOT</span><span class=\"w\" position_id=\"701\"> </span><span class=\"k\" position_id=\"702\">NULL</span></span><span id=\"__span-6-7\" position_id=\"703\"><a id=\"__codelineno-6-7\" name=\"__codelineno-6-7\" position_id=\"704\"/><span class=\"p\" position_id=\"705\">);</span></span><span id=\"__span-6-8\" position_id=\"706\"><a id=\"__codelineno-6-8\" name=\"__codelineno-6-8\" position_id=\"707\"/></span><span id=\"__span-6-9\" position_id=\"708\"><a id=\"__codelineno-6-9\" name=\"__codelineno-6-9\" position_id=\"709\"/><span class=\"c1\" position_id=\"710\">-- table storing data by municipalities</span></span><span id=\"__span-6-10\" position_id=\"711\"><a id=\"__codelineno-6-10\" name=\"__codelineno-6-10\" position_id=\"712\"/></span><span id=\"__span-6-11\" position_id=\"713\"><a id=\"__codelineno-6-11\" name=\"__codelineno-6-11\" position_id=\"714\"/><span class=\"k\" position_id=\"715\">CREATE</span><span class=\"w\" position_id=\"716\"> </span><span class=\"k\" position_id=\"717\">TABLE</span><span class=\"w\" position_id=\"718\"> </span><span class=\"n\" position_id=\"719\">insee</span><span class=\"p\" position_id=\"720\">.</span><span class=\"n\" position_id=\"721\">donnees_communes</span><span class=\"w\" position_id=\"722\"> </span><span class=\"p\" position_id=\"723\">(</span></span><span id=\"__span-6-12\" position_id=\"724\"><a id=\"__codelineno-6-12\" name=\"__codelineno-6-12\" position_id=\"725\"/><span class=\"n\" position_id=\"726\">pk_id</span><span class=\"w\" position_id=\"727\"> </span><span class=\"n\" position_id=\"728\">int4</span><span class=\"w\" position_id=\"729\"> </span><span class=\"k\" position_id=\"730\">PRIMARY</span><span class=\"w\" position_id=\"731\"> </span><span class=\"k\" position_id=\"732\">KEY</span><span class=\"w\" position_id=\"733\"> </span><span class=\"k\" position_id=\"734\">GENERATED</span><span class=\"w\" position_id=\"735\"> </span><span class=\"k\" position_id=\"736\">BY</span><span class=\"w\" position_id=\"737\"> </span><span class=\"k\" position_id=\"738\">DEFAULT</span><span class=\"w\" position_id=\"739\"> </span><span class=\"k\" position_id=\"740\">AS</span><span class=\"w\" position_id=\"741\"> </span><span class=\"k\" position_id=\"742\">IDENTITY</span><span class=\"p\" position_id=\"743\">,</span></span><span id=\"__span-6-13\" position_id=\"744\"><a id=\"__codelineno-6-13\" name=\"__codelineno-6-13\" position_id=\"745\"/><span class=\"n\" position_id=\"746\">code_commune</span><span class=\"w\" position_id=\"747\"> </span><span class=\"nb\" position_id=\"748\">text</span><span class=\"w\" position_id=\"749\"> </span><span class=\"k\" position_id=\"750\">NOT</span><span class=\"w\" position_id=\"751\"> </span><span class=\"k\" position_id=\"752\">NULL</span><span class=\"w\" position_id=\"753\"> </span><span class=\"k\" position_id=\"754\">CHECK</span><span class=\"w\" position_id=\"755\"> </span><span class=\"k\" position_id=\"756\">length</span><span class=\"p\" position_id=\"757\">(</span><span class=\"n\" position_id=\"758\">code_commune</span><span class=\"p\" position_id=\"759\">)</span><span class=\"w\" position_id=\"760\"> </span><span class=\"o\" position_id=\"761\">=</span><span class=\"w\" position_id=\"762\"> </span><span class=\"mi\" position_id=\"763\">5</span><span class=\"p\" position_id=\"764\">,</span><span class=\"w\" position_id=\"765\"> </span><span class=\"c1\" position_id=\"766\">-- let&apos;s not forget the Corsicans who have municipalities codes in 2A and 2B, hence the text type</span></span><span id=\"__span-6-14\" position_id=\"767\"><a id=\"__codelineno-6-14\" name=\"__codelineno-6-14\" position_id=\"768\"/><span class=\"n\" position_id=\"769\">fk_base</span><span class=\"w\" position_id=\"770\"> </span><span class=\"n\" position_id=\"771\">int2</span><span class=\"w\" position_id=\"772\"> </span><span class=\"k\" position_id=\"773\">NOT</span><span class=\"w\" position_id=\"774\"> </span><span class=\"k\" position_id=\"775\">NULL</span><span class=\"p\" position_id=\"776\">,</span></span><span id=\"__span-6-15\" position_id=\"777\"><a id=\"__codelineno-6-15\" name=\"__codelineno-6-15\" position_id=\"778\"/><span class=\"n\" position_id=\"779\">annee</span><span class=\"w\" position_id=\"780\"> </span><span class=\"n\" position_id=\"781\">int2</span><span class=\"w\" position_id=\"782\"> </span><span class=\"k\" position_id=\"783\">NOT</span><span class=\"w\" position_id=\"784\"> </span><span class=\"k\" position_id=\"785\">NULL</span><span class=\"p\" position_id=\"786\">,</span></span><span id=\"__span-6-16\" position_id=\"787\"><a id=\"__codelineno-6-16\" name=\"__codelineno-6-16\" position_id=\"788\"/><span class=\"n\" position_id=\"789\">donnees</span><span class=\"w\" position_id=\"790\"> </span><span class=\"n\" position_id=\"791\">jsonb</span><span class=\"w\" position_id=\"792\"> </span><span class=\"k\" position_id=\"793\">NOT</span><span class=\"w\" position_id=\"794\"> </span><span class=\"k\" position_id=\"795\">NULL</span><span class=\"p\" position_id=\"796\">,</span></span><span id=\"__span-6-17\" position_id=\"797\"><a id=\"__codelineno-6-17\" name=\"__codelineno-6-17\" position_id=\"798\"/><span class=\"k\" position_id=\"799\">UNIQUE</span><span class=\"w\" position_id=\"800\"> </span><span class=\"p\" position_id=\"801\">(</span><span class=\"n\" position_id=\"802\">fk_base</span><span class=\"p\" position_id=\"803\">,</span><span class=\"w\" position_id=\"804\"> </span><span class=\"n\" position_id=\"805\">annee</span><span class=\"p\" position_id=\"806\">,</span><span class=\"w\" position_id=\"807\"> </span><span class=\"n\" position_id=\"808\">code_commune</span><span class=\"p\" position_id=\"809\">)</span></span><span id=\"__span-6-18\" position_id=\"810\"><a id=\"__codelineno-6-18\" name=\"__codelineno-6-18\" position_id=\"811\"/><span class=\"k\" position_id=\"812\">CONSTRAINT</span><span class=\"w\" position_id=\"813\"> </span><span class=\"n\" position_id=\"814\">fk_donnees_bases</span><span class=\"w\" position_id=\"815\"> </span><span class=\"k\" position_id=\"816\">FOREIGN</span><span class=\"w\" position_id=\"817\"> </span><span class=\"k\" position_id=\"818\">KEY</span><span class=\"w\" position_id=\"819\"> </span><span class=\"n\" position_id=\"820\">fk_base</span><span class=\"w\" position_id=\"821\"> </span><span class=\"k\" position_id=\"822\">ON</span><span class=\"w\" position_id=\"823\"> </span><span class=\"n\" position_id=\"824\">insee</span><span class=\"p\" position_id=\"825\">.</span><span class=\"n\" position_id=\"826\">bases</span><span class=\"p\" position_id=\"827\">(</span><span class=\"n\" position_id=\"828\">pk_id</span><span class=\"p\" position_id=\"829\">)</span><span class=\"w\" position_id=\"830\"> </span><span class=\"k\" position_id=\"831\">ON</span><span class=\"w\" position_id=\"832\"> </span><span class=\"k\" position_id=\"833\">UPDATE</span><span class=\"w\" position_id=\"834\"> </span><span class=\"k\" position_id=\"835\">CASCADE</span><span class=\"w\" position_id=\"836\"> </span><span class=\"k\" position_id=\"837\">ON</span><span class=\"w\" position_id=\"838\"> </span><span class=\"k\" position_id=\"839\">DELETE</span><span class=\"w\" position_id=\"840\"> </span><span class=\"k\" position_id=\"841\">CASCADE</span></span><span id=\"__span-6-19\" position_id=\"842\"><a id=\"__codelineno-6-19\" name=\"__codelineno-6-19\" position_id=\"843\"/><span class=\"p\" position_id=\"844\">);</span></span><span id=\"__span-6-20\" position_id=\"845\"><a id=\"__codelineno-6-20\" name=\"__codelineno-6-20\" position_id=\"846\"/></span><span id=\"__span-6-21\" position_id=\"847\"><a id=\"__codelineno-6-21\" name=\"__codelineno-6-21\" position_id=\"848\"/><span class=\"c1\" position_id=\"849\">-- Index creation</span></span><span id=\"__span-6-22\" position_id=\"850\"><a id=\"__codelineno-6-22\" name=\"__codelineno-6-22\" position_id=\"851\"/><span class=\"c1\" position_id=\"852\">-- A multi-field index is already automatically created on (fk_base, annee, code_commune) thanks to the UNIQUE clause in the table declaration.</span></span><span id=\"__span-6-23\" position_id=\"853\"><a id=\"__codelineno-6-23\" name=\"__codelineno-6-23\" position_id=\"854\"/><span class=\"k\" position_id=\"855\">CREATE</span><span class=\"w\" position_id=\"856\"> </span><span class=\"k\" position_id=\"857\">INDEX</span><span class=\"w\" position_id=\"858\"> </span><span class=\"n\" position_id=\"859\">idx_donnees_com_donnees</span><span class=\"w\" position_id=\"860\"> </span><span class=\"k\" position_id=\"861\">ON</span><span class=\"w\" position_id=\"862\"> </span><span class=\"n\" position_id=\"863\">insee</span><span class=\"p\" position_id=\"864\">.</span><span class=\"n\" position_id=\"865\">donnees_communes</span><span class=\"w\" position_id=\"866\"> </span><span class=\"k\" position_id=\"867\">USING</span><span class=\"w\" position_id=\"868\"> </span><span class=\"n\" position_id=\"869\">gin</span><span class=\"w\" position_id=\"870\"> </span><span class=\"p\" position_id=\"871\">(</span><span class=\"n\" position_id=\"872\">donnees</span><span class=\"p\" position_id=\"873\">);</span></span><span id=\"__span-6-24\" position_id=\"874\"><a id=\"__codelineno-6-24\" name=\"__codelineno-6-24\" position_id=\"875\"/><span class=\"k\" position_id=\"876\">END</span><span class=\"p\" position_id=\"877\">;</span></span></code></pre></div></td></tr></tbody></table>", "language": "english", "position": {"atoms": [{"position_id": 591, "txt": "<table <table class=\"highlighttable\" position_id=\"591\"><tbody position_id=\"592\"><tr position_id=\"593\"><th class=\"filename\" colspan=\"2\" position_id=\"594\"><span class=\"filename\" position_id=\"595\">Table creation Script</span></th></tr><tr position_id=\"596\"><td class=\"linenos\" position_id=\"597\"><div class=\"linenodiv\" position_id=\"598\"/></td><td class=\"code\" position_id=\"649\"><div position_id=\"650\"><pre id=\"__code_6\" position_id=\"651\"><span position_id=\"652\"/><code class=\"md-code__content\" tabindex=\"0\" position_id=\"653\"><span id=\"__span-6-1\" position_id=\"654\"><a id=\"__codelineno-6-1\" name=\"__codelineno-6-1\" position_id=\"655\"/><span class=\"k\" position_id=\"656\">BEGIN</span><span class=\"p\" position_id=\"657\">;</span>\n</span><span id=\"__span-6-2\" position_id=\"658\"><a id=\"__codelineno-6-2\" name=\"__codelineno-6-2\" position_id=\"659\"/><span class=\"c1\" position_id=\"660\">-- table listing the various Insee databases available</span>\n</span><span id=\"__span-6-3\" position_id=\"661\"><a id=\"__codelineno-6-3\" name=\"__codelineno-6-3\" position_id=\"662\"/>\n</span><span id=\"__span-6-4\" position_id=\"663\"><a id=\"__codelineno-6-4\" name=\"__codelineno-6-4\" position_id=\"664\"/><span class=\"k\" position_id=\"665\">CREATE</span><span class=\"w\" position_id=\"666\"> </span><span class=\"k\" position_id=\"667\">TABLE</span><span class=\"w\" position_id=\"668\"> </span><span class=\"n\" position_id=\"669\">insee</span><span class=\"p\" position_id=\"670\">.</span><span class=\"n\" position_id=\"671\">bases</span><span class=\"w\" position_id=\"672\"> </span><span class=\"p\" position_id=\"673\">(</span>\n</span><span id=\"__span-6-5\" position_id=\"674\"><a id=\"__codelineno-6-5\" name=\"__codelineno-6-5\" position_id=\"675\"/><span class=\"n\" position_id=\"676\">pk_id</span><span class=\"w\" position_id=\"677\"> </span><span class=\"n\" position_id=\"678\">int2</span><span class=\"w\" position_id=\"679\"> </span><span class=\"k\" position_id=\"680\">PRIMARY</span><span class=\"w\" position_id=\"681\"> </span><span class=\"k\" position_id=\"682\">KEY</span><span class=\"w\" position_id=\"683\"> </span><span class=\"k\" position_id=\"684\">GENERATED</span><span class=\"w\" position_id=\"685\"> </span><span class=\"k\" position_id=\"686\">BY</span><span class=\"w\" position_id=\"687\"> </span><span class=\"k\" position_id=\"688\">DEFAULT</span><span class=\"w\" position_id=\"689\"> </span><span class=\"k\" position_id=\"690\">AS</span><span class=\"w\" position_id=\"691\"> </span><span class=\"k\" position_id=\"692\">IDENTITY</span><span class=\"p\" position_id=\"693\">,</span>\n</span><span id=\"__span-6-6\" position_id=\"694\"><a id=\"__codelineno-6-6\" name=\"__codelineno-6-6\" position_id=\"695\"/><span class=\"n\" position_id=\"696\">nom</span><span class=\"w\" position_id=\"697\"> </span><span class=\"nb\" position_id=\"698\">text</span><span class=\"w\" position_id=\"699\"> </span><span class=\"k\" position_id=\"700\">NOT</span><span class=\"w\" position_id=\"701\"> </span><span class=\"k\" position_id=\"702\">NULL</span>\n</span><span id=\"__span-6-7\" position_id=\"703\"><a id=\"__codelineno-6-7\" name=\"__codelineno-6-7\" position_id=\"704\"/><span class=\"p\" position_id=\"705\">);</span>\n</span><span id=\"__span-6-8\" position_id=\"706\"><a id=\"__codelineno-6-8\" name=\"__codelineno-6-8\" position_id=\"707\"/>\n</span><span id=\"__span-6-9\" position_id=\"708\"><a id=\"__codelineno-6-9\" name=\"__codelineno-6-9\" position_id=\"709\"/><span class=\"c1\" position_id=\"710\">-- table storing data by municipalities</span>\n</span><span id=\"__span-6-10\" position_id=\"711\"><a id=\"__codelineno-6-10\" name=\"__codelineno-6-10\" position_id=\"712\"/>\n</span><span id=\"__span-6-11\" position_id=\"713\"><a id=\"__codelineno-6-11\" name=\"__codelineno-6-11\" position_id=\"714\"/><span class=\"k\" position_id=\"715\">CREATE</span><span class=\"w\" position_id=\"716\"> </span><span class=\"k\" position_id=\"717\">TABLE</span><span class=\"w\" position_id=\"718\"> </span><span class=\"n\" position_id=\"719\">insee</span><span class=\"p\" position_id=\"720\">.</span><span class=\"n\" position_id=\"721\">donnees_communes</span><span class=\"w\" position_id=\"722\"> </span><span class=\"p\" position_id=\"723\">(</span>\n</span><span id=\"__span-6-12\" position_id=\"724\"><a id=\"__codelineno-6-12\" name=\"__codelineno-6-12\" position_id=\"725\"/><span class=\"n\" position_id=\"726\">pk_id</span><span class=\"w\" position_id=\"727\"> </span><span class=\"n\" position_id=\"728\">int4</span><span class=\"w\" position_id=\"729\"> </span><span class=\"k\" position_id=\"730\">PRIMARY</span><span class=\"w\" position_id=\"731\"> </span><span class=\"k\" position_id=\"732\">KEY</span><span class=\"w\" position_id=\"733\"> </span><span class=\"k\" position_id=\"734\">GENERATED</span><span class=\"w\" position_id=\"735\"> </span><span class=\"k\" position_id=\"736\">BY</span><span class=\"w\" position_id=\"737\"> </span><span class=\"k\" position_id=\"738\">DEFAULT</span><span class=\"w\" position_id=\"739\"> </span><span class=\"k\" position_id=\"740\">AS</span><span class=\"w\" position_id=\"741\"> </span><span class=\"k\" position_id=\"742\">IDENTITY</span><span class=\"p\" position_id=\"743\">,</span>\n</span><span id=\"__span-6-13\" position_id=\"744\"><a id=\"__codelineno-6-13\" name=\"__codelineno-6-13\" position_id=\"745\"/><span class=\"n\" position_id=\"746\">code_commune</span><span class=\"w\" position_id=\"747\"> </span><span class=\"nb\" position_id=\"748\">text</span><span class=\"w\" position_id=\"749\"> </span><span class=\"k\" position_id=\"750\">NOT</span><span class=\"w\" position_id=\"751\"> </span><span class=\"k\" position_id=\"752\">NULL</span><span class=\"w\" position_id=\"753\"> </span><span class=\"k\" position_id=\"754\">CHECK</span><span class=\"w\" position_id=\"755\"> </span><span class=\"k\" position_id=\"756\">length</span><span class=\"p\" position_id=\"757\">(</span><span class=\"n\" position_id=\"758\">code_commune</span><span class=\"p\" position_id=\"759\">)</span><span class=\"w\" position_id=\"760\"> </span><span class=\"o\" position_id=\"761\">=</span><span class=\"w\" position_id=\"762\"> </span><span class=\"mi\" position_id=\"763\">5</span><span class=\"p\" position_id=\"764\">,</span><span class=\"w\" position_id=\"765\"> </span><span class=\"c1\" position_id=\"766\">-- let&apos;s not forget the Corsicans who have municipalities codes in 2A and 2B, hence the text type</span>\n</span><span id=\"__span-6-14\" position_id=\"767\"><a id=\"__codelineno-6-14\" name=\"__codelineno-6-14\" position_id=\"768\"/><span class=\"n\" position_id=\"769\">fk_base</span><span class=\"w\" position_id=\"770\"> </span><span class=\"n\" position_id=\"771\">int2</span><span class=\"w\" position_id=\"772\"> </span><span class=\"k\" position_id=\"773\">NOT</span><span class=\"w\" position_id=\"774\"> </span><span class=\"k\" position_id=\"775\">NULL</span><span class=\"p\" position_id=\"776\">,</span>\n</span><span id=\"__span-6-15\" position_id=\"777\"><a id=\"__codelineno-6-15\" name=\"__codelineno-6-15\" position_id=\"778\"/><span class=\"n\" position_id=\"779\">annee</span><span class=\"w\" position_id=\"780\"> </span><span class=\"n\" position_id=\"781\">int2</span><span class=\"w\" position_id=\"782\"> </span><span class=\"k\" position_id=\"783\">NOT</span><span class=\"w\" position_id=\"784\"> </span><span class=\"k\" position_id=\"785\">NULL</span><span class=\"p\" position_id=\"786\">,</span>\n</span><span id=\"__span-6-16\" position_id=\"787\"><a id=\"__codelineno-6-16\" name=\"__codelineno-6-16\" position_id=\"788\"/><span class=\"n\" position_id=\"789\">donnees</span><span class=\"w\" position_id=\"790\"> </span><span class=\"n\" position_id=\"791\">jsonb</span><span class=\"w\" position_id=\"792\"> </span><span class=\"k\" position_id=\"793\">NOT</span><span class=\"w\" position_id=\"794\"> </span><span class=\"k\" position_id=\"795\">NULL</span><span class=\"p\" position_id=\"796\">,</span>\n</span><span id=\"__span-6-17\" position_id=\"797\"><a id=\"__codelineno-6-17\" name=\"__codelineno-6-17\" position_id=\"798\"/><span class=\"k\" position_id=\"799\">UNIQUE</span><span class=\"w\" position_id=\"800\"> </span><span class=\"p\" position_id=\"801\">(</span><span class=\"n\" position_id=\"802\">fk_base</span><span class=\"p\" position_id=\"803\">,</span><span class=\"w\" position_id=\"804\"> </span><span class=\"n\" position_id=\"805\">annee</span><span class=\"p\" position_id=\"806\">,</span><span class=\"w\" position_id=\"807\"> </span><span class=\"n\" position_id=\"808\">code_commune</span><span class=\"p\" position_id=\"809\">)</span>\n</span><span id=\"__span-6-18\" position_id=\"810\"><a id=\"__codelineno-6-18\" name=\"__codelineno-6-18\" position_id=\"811\"/><span class=\"k\" position_id=\"812\">CONSTRAINT</span><span class=\"w\" position_id=\"813\"> </span><span class=\"n\" position_id=\"814\">fk_donnees_bases</span><span class=\"w\" position_id=\"815\"> </span><span class=\"k\" position_id=\"816\">FOREIGN</span><span class=\"w\" position_id=\"817\"> </span><span class=\"k\" position_id=\"818\">KEY</span><span class=\"w\" position_id=\"819\"> </span><span class=\"n\" position_id=\"820\">fk_base</span><span class=\"w\" position_id=\"821\"> </span><span class=\"k\" position_id=\"822\">ON</span><span class=\"w\" position_id=\"823\"> </span><span class=\"n\" position_id=\"824\">insee</span><span class=\"p\" position_id=\"825\">.</span><span class=\"n\" position_id=\"826\">bases</span><span class=\"p\" position_id=\"827\">(</span><span class=\"n\" position_id=\"828\">pk_id</span><span class=\"p\" position_id=\"829\">)</span><span class=\"w\" position_id=\"830\"> </span><span class=\"k\" position_id=\"831\">ON</span><span class=\"w\" position_id=\"832\"> </span><span class=\"k\" position_id=\"833\">UPDATE</span><span class=\"w\" position_id=\"834\"> </span><span class=\"k\" position_id=\"835\">CASCADE</span><span class=\"w\" position_id=\"836\"> </span><span class=\"k\" position_id=\"837\">ON</span><span class=\"w\" position_id=\"838\"> </span><span class=\"k\" position_id=\"839\">DELETE</span><span class=\"w\" position_id=\"840\"> </span><span class=\"k\" position_id=\"841\">CASCADE</span>\n</span><span id=\"__span-6-19\" position_id=\"842\"><a id=\"__codelineno-6-19\" name=\"__codelineno-6-19\" position_id=\"843\"/><span class=\"p\" position_id=\"844\">);</span>\n</span><span id=\"__span-6-20\" position_id=\"845\"><a id=\"__codelineno-6-20\" name=\"__codelineno-6-20\" position_id=\"846\"/>\n</span><span id=\"__span-6-21\" position_id=\"847\"><a id=\"__codelineno-6-21\" name=\"__codelineno-6-21\" position_id=\"848\"/><span class=\"c1\" position_id=\"849\">-- Index creation</span>\n</span><span id=\"__span-6-22\" position_id=\"850\"><a id=\"__codelineno-6-22\" name=\"__codelineno-6-22\" position_id=\"851\"/><span class=\"c1\" position_id=\"852\">-- A multi-field index is already automatically created on (fk_base, annee, code_commune) thanks to the UNIQUE clause in the table declaration.</span>\n</span><span id=\"__span-6-23\" position_id=\"853\"><a id=\"__codelineno-6-23\" name=\"__codelineno-6-23\" position_id=\"854\"/><span class=\"k\" position_id=\"855\">CREATE</span><span class=\"w\" position_id=\"856\"> </span><span class=\"k\" position_id=\"857\">INDEX</span><span class=\"w\" position_id=\"858\"> </span><span class=\"n\" position_id=\"859\">idx_donnees_com_donnees</span><span class=\"w\" position_id=\"860\"> </span><span class=\"k\" position_id=\"861\">ON</span><span class=\"w\" position_id=\"862\"> </span><span class=\"n\" position_id=\"863\">insee</span><span class=\"p\" position_id=\"864\">.</span><span class=\"n\" position_id=\"865\">donnees_communes</span><span class=\"w\" position_id=\"866\"> </span><span class=\"k\" position_id=\"867\">USING</span><span class=\"w\" position_id=\"868\"> </span><span class=\"n\" position_id=\"869\">gin</span><span class=\"w\" position_id=\"870\"> </span><span class=\"p\" position_id=\"871\">(</span><span class=\"n\" position_id=\"872\">donnees</span><span class=\"p\" position_id=\"873\">);</span>\n</span><span id=\"__span-6-24\" position_id=\"874\"><a id=\"__codelineno-6-24\" name=\"__codelineno-6-24\" position_id=\"875\"/><span class=\"k\" position_id=\"876\">END</span><span class=\"p\" position_id=\"877\">;</span>\n</span></code></pre></div></td></tr></tbody></table>", "x": "/html/body/div[3]/main/div/div[3]/article/div[8]/table"}]}, "tags": ["table"], "label": "table", "web_segment_id": 41, "global_sentence_id": 67, "edu_l1_label": "EDU_O"}, {"txt": "The most fussy of you DBAs will have noticed this CHECK.", "language": "english", "position": {"atoms": [{"position_id": 3991, "txt": "The most fussy of you DBAs will have noticed this ", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]"}, {"position_id": 3993, "txt": "CHECK", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[1]"}, {"position_id": 3995, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 42, "global_sentence_id": 68, "edu_l1_label": "IOS"}, {"txt": " “Why doesn't he use varchar(5)?", "language": "english", "position": {"atoms": [{"position_id": 3996, "txt": " “Why doesn't he use varchar(5)?", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 42, "global_sentence_id": 69, "edu_l1_label": "IOS"}, {"txt": " It really doesn't make sense!”", "language": "english", "position": {"atoms": [{"position_id": 3997, "txt": " It really doesn't make sense!”", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 42, "global_sentence_id": 70, "edu_l1_label": "IOS"}, {"txt": " Quite simply, because this form allows you to use a text type with really arbitrary numbers of characters (the text type) unlike varchar(255), while being able to control the minimum and maximum number with the CHECK predicate (unlike varchar which only controls the maximum) as explained on the [Postgres wiki].(https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_varchar.28n.29_by_default).", "language": "english", "position": {"atoms": [{"position_id": 3998, "txt": " Quite simply, because this form allows you to use a text type with ", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[1]"}, {"position_id": 4000, "txt": "really", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/strong"}, {"position_id": 4002, "txt": " arbitrary numbers of characters (the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/strong"}, {"position_id": 4004, "txt": "text", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[2]"}, {"position_id": 4006, "txt": " type) unlike varchar(255), while being able to control the minimum and maximum number with the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[2]"}, {"position_id": 4008, "txt": "CHECK", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[3]"}, {"position_id": 4010, "txt": " predicate (unlike varchar which only controls the maximum) as explained on the [Postgres wiki].(", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/code[3]"}, {"position_id": 4012, "txt": "https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_varchar.28n.29_by_default", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/a"}, {"position_id": 4014, "txt": ").", "x": "/html/body/div[3]/main/div/div[3]/article/p[23]/a"}]}, "tags": ["strong"], "label": "content", "web_segment_id": 42, "global_sentence_id": 71, "edu_l1_label": "IOS"}, {"txt": "And we insert a few rows in our insee.bases table :", "language": "english", "position": {"atoms": [{"position_id": 4016, "txt": "And we insert a few rows in our insee.bases table :", "x": "/html/body/div[3]/main/div/div[3]/article/p[24]"}]}, "tags": [], "label": "content", "web_segment_id": 43, "global_sentence_id": 72, "edu_l1_label": "IOS"}, {"txt": "<table <table class=\"highlighttable\" position_id=\"886\"><tbody position_id=\"887\"><tr position_id=\"888\"><th class=\"filename\" colspan=\"2\" position_id=\"889\"><span class=\"filename\" position_id=\"890\">SQL script for data insertion</span></th></tr><tr position_id=\"891\"><td class=\"linenos\" position_id=\"892\"><div class=\"linenodiv\" position_id=\"893\"><pre position_id=\"894\"><span position_id=\"895\"/><span class=\"normal\" position_id=\"896\"><a href=\"#__codelineno-7-1\" position_id=\"897\">1</a></span><span class=\"normal\" position_id=\"898\"><a href=\"#__codelineno-7-2\" position_id=\"899\">2</a></span><span class=\"normal\" position_id=\"900\"><a href=\"#__codelineno-7-3\" position_id=\"901\">3</a></span><span class=\"normal\" position_id=\"902\"><a href=\"#__codelineno-7-4\" position_id=\"903\">4</a></span><span class=\"normal\" position_id=\"904\"><a href=\"#__codelineno-7-5\" position_id=\"905\">5</a></span><span class=\"normal\" position_id=\"906\"><a href=\"#__codelineno-7-6\" position_id=\"907\">6</a></span><span class=\"normal\" position_id=\"908\"><a href=\"#__codelineno-7-7\" position_id=\"909\">7</a></span></pre></div></td><td class=\"code\" position_id=\"910\"><div position_id=\"911\"><pre id=\"__code_7\" position_id=\"912\"><span position_id=\"913\"/><code class=\"md-code__content\" position_id=\"914\"><span id=\"__span-7-1\" position_id=\"915\"><a id=\"__codelineno-7-1\" name=\"__codelineno-7-1\" position_id=\"916\"/><span class=\"k\" position_id=\"917\">INSERT</span><span class=\"w\" position_id=\"918\"> </span><span class=\"k\" position_id=\"919\">INTO</span><span class=\"w\" position_id=\"920\"> </span><span class=\"n\" position_id=\"921\">insee</span><span class=\"p\" position_id=\"922\">.</span><span class=\"n\" position_id=\"923\">bases</span><span class=\"w\" position_id=\"924\"> </span><span class=\"p\" position_id=\"925\">(</span><span class=\"n\" position_id=\"926\">nom</span><span class=\"p\" position_id=\"927\">)</span><span class=\"w\" position_id=\"928\"> </span><span class=\"k\" position_id=\"929\">VALUES</span></span><span id=\"__span-7-2\" position_id=\"930\"><a id=\"__codelineno-7-2\" name=\"__codelineno-7-2\" position_id=\"931\"/><span class=\"p\" position_id=\"932\">(</span><span class=\"s1\" position_id=\"933\">&apos;rp_population&apos;</span><span class=\"p\" position_id=\"934\">),</span></span><span id=\"__span-7-3\" position_id=\"935\"><a id=\"__codelineno-7-3\" name=\"__codelineno-7-3\" position_id=\"936\"/><span class=\"p\" position_id=\"937\">(</span><span class=\"s1\" position_id=\"938\">&apos;rp_menages&apos;</span><span class=\"p\" position_id=\"939\">),</span></span><span id=\"__span-7-4\" position_id=\"940\"><a id=\"__codelineno-7-4\" name=\"__codelineno-7-4\" position_id=\"941\"/><span class=\"p\" position_id=\"942\">(</span><span class=\"s1\" position_id=\"943\">&apos;rp_logement&apos;</span><span class=\"p\" position_id=\"944\">),</span></span><span id=\"__span-7-5\" position_id=\"945\"><a id=\"__codelineno-7-5\" name=\"__codelineno-7-5\" position_id=\"946\"/><span class=\"p\" position_id=\"947\">(</span><span class=\"s1\" position_id=\"948\">&apos;rp_diplomes&apos;</span><span class=\"p\" position_id=\"949\">),</span></span><span id=\"__span-7-6\" position_id=\"950\"><a id=\"__codelineno-7-6\" name=\"__codelineno-7-6\" position_id=\"951\"/><span class=\"p\" position_id=\"952\">(</span><span class=\"s1\" position_id=\"953\">&apos;rp_activite&apos;</span><span class=\"p\" position_id=\"954\">),</span></span><span id=\"__span-7-7\" position_id=\"955\"><a id=\"__codelineno-7-7\" name=\"__codelineno-7-7\" position_id=\"956\"/><span class=\"p\" position_id=\"957\">(</span><span class=\"s1\" position_id=\"958\">&apos;rp_emploi&apos;</span><span class=\"p\" position_id=\"959\">)</span></span></code></pre></div></td></tr></tbody></table>", "language": "english", "position": {"atoms": [{"position_id": 886, "txt": "<table <table class=\"highlighttable\" position_id=\"886\"><tbody position_id=\"887\"><tr position_id=\"888\"><th class=\"filename\" colspan=\"2\" position_id=\"889\"><span class=\"filename\" position_id=\"890\">SQL script for data insertion</span></th></tr><tr position_id=\"891\"><td class=\"linenos\" position_id=\"892\"><div class=\"linenodiv\" position_id=\"893\"><pre position_id=\"894\"><span position_id=\"895\"/><span class=\"normal\" position_id=\"896\"><a href=\"#__codelineno-7-1\" position_id=\"897\">1</a></span>\n<span class=\"normal\" position_id=\"898\"><a href=\"#__codelineno-7-2\" position_id=\"899\">2</a></span>\n<span class=\"normal\" position_id=\"900\"><a href=\"#__codelineno-7-3\" position_id=\"901\">3</a></span>\n<span class=\"normal\" position_id=\"902\"><a href=\"#__codelineno-7-4\" position_id=\"903\">4</a></span>\n<span class=\"normal\" position_id=\"904\"><a href=\"#__codelineno-7-5\" position_id=\"905\">5</a></span>\n<span class=\"normal\" position_id=\"906\"><a href=\"#__codelineno-7-6\" position_id=\"907\">6</a></span>\n<span class=\"normal\" position_id=\"908\"><a href=\"#__codelineno-7-7\" position_id=\"909\">7</a></span></pre></div></td><td class=\"code\" position_id=\"910\"><div position_id=\"911\"><pre id=\"__code_7\" position_id=\"912\"><span position_id=\"913\"/><code class=\"md-code__content\" position_id=\"914\"><span id=\"__span-7-1\" position_id=\"915\"><a id=\"__codelineno-7-1\" name=\"__codelineno-7-1\" position_id=\"916\"/><span class=\"k\" position_id=\"917\">INSERT</span><span class=\"w\" position_id=\"918\"> </span><span class=\"k\" position_id=\"919\">INTO</span><span class=\"w\" position_id=\"920\"> </span><span class=\"n\" position_id=\"921\">insee</span><span class=\"p\" position_id=\"922\">.</span><span class=\"n\" position_id=\"923\">bases</span><span class=\"w\" position_id=\"924\"> </span><span class=\"p\" position_id=\"925\">(</span><span class=\"n\" position_id=\"926\">nom</span><span class=\"p\" position_id=\"927\">)</span><span class=\"w\" position_id=\"928\"> </span><span class=\"k\" position_id=\"929\">VALUES</span>\n</span><span id=\"__span-7-2\" position_id=\"930\"><a id=\"__codelineno-7-2\" name=\"__codelineno-7-2\" position_id=\"931\"/><span class=\"p\" position_id=\"932\">(</span><span class=\"s1\" position_id=\"933\">&apos;rp_population&apos;</span><span class=\"p\" position_id=\"934\">),</span>\n</span><span id=\"__span-7-3\" position_id=\"935\"><a id=\"__codelineno-7-3\" name=\"__codelineno-7-3\" position_id=\"936\"/><span class=\"p\" position_id=\"937\">(</span><span class=\"s1\" position_id=\"938\">&apos;rp_menages&apos;</span><span class=\"p\" position_id=\"939\">),</span>\n</span><span id=\"__span-7-4\" position_id=\"940\"><a id=\"__codelineno-7-4\" name=\"__codelineno-7-4\" position_id=\"941\"/><span class=\"p\" position_id=\"942\">(</span><span class=\"s1\" position_id=\"943\">&apos;rp_logement&apos;</span><span class=\"p\" position_id=\"944\">),</span>\n</span><span id=\"__span-7-5\" position_id=\"945\"><a id=\"__codelineno-7-5\" name=\"__codelineno-7-5\" position_id=\"946\"/><span class=\"p\" position_id=\"947\">(</span><span class=\"s1\" position_id=\"948\">&apos;rp_diplomes&apos;</span><span class=\"p\" position_id=\"949\">),</span>\n</span><span id=\"__span-7-6\" position_id=\"950\"><a id=\"__codelineno-7-6\" name=\"__codelineno-7-6\" position_id=\"951\"/><span class=\"p\" position_id=\"952\">(</span><span class=\"s1\" position_id=\"953\">&apos;rp_activite&apos;</span><span class=\"p\" position_id=\"954\">),</span>\n</span><span id=\"__span-7-7\" position_id=\"955\"><a id=\"__codelineno-7-7\" name=\"__codelineno-7-7\" position_id=\"956\"/><span class=\"p\" position_id=\"957\">(</span><span class=\"s1\" position_id=\"958\">&apos;rp_emploi&apos;</span><span class=\"p\" position_id=\"959\">)</span>\n</span></code></pre></div></td></tr></tbody></table>", "x": "/html/body/div[3]/main/div/div[3]/article/div[9]/table"}]}, "tags": ["table"], "label": "table", "web_segment_id": 44, "global_sentence_id": 73, "edu_l1_label": "EDU_O"}, {"txt": "Data insertion and retrieval#", "language": "english", "position": {"atoms": [{"position_id": 4018, "txt": "Data insertion and retrieval", "x": "/html/body/div[3]/main/div/div[3]/article/h2[5]"}, {"position_id": 4020, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[5]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 45, "global_sentence_id": 74, "edu_l1_label": "BOS"}, {"txt": "To pass text/SQL data to JSON-encoded data in the appropriate dedicated field, PostgreSQL has some functions.", "language": "english", "position": {"atoms": [{"position_id": 4022, "txt": "To pass text/SQL data to JSON-encoded data in the appropriate dedicated field, PostgreSQL has ", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]"}, {"position_id": 4024, "txt": "some", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/a/em"}, {"position_id": 4026, "txt": " functions", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/a/em"}, {"position_id": 4028, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/a"}]}, "tags": ["em"], "label": "content", "web_segment_id": 46, "global_sentence_id": 75, "edu_l1_label": "IOS"}, {"txt": " We're going to use the jsonb_object() function, which transforms a sql array in the form key1, value1, key2, value2 .... into a jsonb object with only one nesting level.", "language": "english", "position": {"atoms": [{"position_id": 4029, "txt": " We're going to use the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/a"}, {"position_id": 4031, "txt": "jsonb_object()", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[1]"}, {"position_id": 4033, "txt": " function, which transforms a sql ", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[1]"}, {"position_id": 4035, "txt": "array", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[2]"}, {"position_id": 4037, "txt": " in the form ", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[2]"}, {"position_id": 4039, "txt": "key1, value1, key2, value2 ....", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[3]"}, {"position_id": 4041, "txt": " into a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[3]"}, {"position_id": 4043, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[4]"}, {"position_id": 4045, "txt": " object with only one nesting level.", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[4]"}]}, "tags": [], "label": "content", "web_segment_id": 46, "global_sentence_id": 76, "edu_l1_label": "IOS"}, {"txt": " Other functions are available for more complex objects (such as jsonb_build_object()).", "language": "english", "position": {"atoms": [{"position_id": 4046, "txt": " Other functions are available for more complex objects (such as ", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[4]"}, {"position_id": 4048, "txt": "jsonb_build_object()", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[5]"}, {"position_id": 4050, "txt": ").", "x": "/html/body/div[3]/main/div/div[3]/article/p[25]/code[5]"}]}, "tags": [], "label": "content", "web_segment_id": 46, "global_sentence_id": 77, "edu_l1_label": "IOS"}, {"txt": "Simple example#", "language": "english", "position": {"atoms": [{"position_id": 4052, "txt": "Simple example", "x": "/html/body/div[3]/main/div/div[3]/article/h3[1]"}, {"position_id": 4054, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h3[1]/a"}]}, "tags": ["h3"], "label": "title2", "web_segment_id": 47, "global_sentence_id": 78, "edu_l1_label": "IOS"}, {"txt": "We'll create a text string containing the contents of our json, whose values will be separated by commas key1, value1, key2, value2.", "language": "english", "position": {"atoms": [{"position_id": 4056, "txt": "We'll create a text string containing the contents of our json, whose values will be separated by commas ", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]"}, {"position_id": 4058, "txt": "key1, value1, key2, value2", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[1]"}, {"position_id": 4060, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 48, "global_sentence_id": 79, "edu_l1_label": "IOS"}, {"txt": " This string will be passed to a string_to_array() function, transforming it into an array with , as separator to separate the elements of the text string into list elements, a character passed as the function's second parameter.", "language": "english", "position": {"atoms": [{"position_id": 4061, "txt": " This string will be passed to a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[1]"}, {"position_id": 4063, "txt": "string_to_array()", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[2]"}, {"position_id": 4065, "txt": " function, transforming it into an ", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[2]"}, {"position_id": 4067, "txt": "array", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[3]"}, {"position_id": 4069, "txt": " with ", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[3]"}, {"position_id": 4071, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[4]"}, {"position_id": 4073, "txt": " as separator to separate the elements of the text string into list elements, a character passed as the function's second parameter.", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[4]"}]}, "tags": [], "label": "content", "web_segment_id": 48, "global_sentence_id": 80, "edu_l1_label": "IOS"}, {"txt": " This array will then be sent to the jsonb_object() function.", "language": "english", "position": {"atoms": [{"position_id": 4074, "txt": " This ", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[4]"}, {"position_id": 4076, "txt": "array", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[5]"}, {"position_id": 4078, "txt": " will then be sent to the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[5]"}, {"position_id": 4080, "txt": "jsonb_object()", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[6]"}, {"position_id": 4082, "txt": " function.", "x": "/html/body/div[3]/main/div/div[3]/article/p[26]/code[6]"}]}, "tags": [], "label": "content", "web_segment_id": 48, "global_sentence_id": 81, "edu_l1_label": "IOS"}, {"txt": "INSERTINTOinsee.donnees_communes(code_commune,annee,fk_base,donnees)VALUES('99999',2024,1,jsonb_object(string_to_array('tomatoes,42,melons,12',',')))", "language": "english", "position": {"atoms": [{"position_id": 4084, "txt": "INSERT", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[1]"}, {"position_id": 4086, "txt": "INTO", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[3]"}, {"position_id": 4088, "txt": "insee", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[5]"}, {"position_id": 4090, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[6]"}, {"position_id": 4092, "txt": "donnees_communes", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[7]"}, {"position_id": 4094, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[9]"}, {"position_id": 4096, "txt": "code_commune", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[10]"}, {"position_id": 4098, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[11]"}, {"position_id": 4100, "txt": "annee", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[13]"}, {"position_id": 4102, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[14]"}, {"position_id": 4104, "txt": "fk_base", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[16]"}, {"position_id": 4106, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[17]"}, {"position_id": 4108, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[19]"}, {"position_id": 4110, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[20]"}, {"position_id": 4112, "txt": "VALUES", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[1]/span[22]"}, {"position_id": 4114, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[2]/span"}, {"position_id": 4116, "txt": "'99999'", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[3]/span[2]"}, {"position_id": 4118, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[3]/span[3]"}, {"position_id": 4120, "txt": "2024", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[4]/span[2]"}, {"position_id": 4122, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[4]/span[3]"}, {"position_id": 4124, "txt": "1", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[5]/span[2]"}, {"position_id": 4126, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[5]/span[3]"}, {"position_id": 4128, "txt": "jsonb_object", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[6]/span[2]"}, {"position_id": 4130, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[6]/span[3]"}, {"position_id": 4132, "txt": "string_to_array", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[7]/span[2]"}, {"position_id": 4134, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[7]/span[3]"}, {"position_id": 4136, "txt": "'tomatoes,42,melons,12'", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[7]/span[4]"}, {"position_id": 4138, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[7]/span[5]"}, {"position_id": 4140, "txt": "','", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[7]/span[6]"}, {"position_id": 4142, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[7]/span[7]"}, {"position_id": 4144, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[8]/span[2]"}, {"position_id": 4146, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[10]/pre/code/span[9]/span"}]}, "tags": [], "label": "code", "web_segment_id": 49, "global_sentence_id": 82, "edu_l1_label": "IOS"}, {"txt": "This request will encode this json object in the data field:", "language": "english", "position": {"atoms": [{"position_id": 4148, "txt": "This request will encode this json object in the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[27]"}, {"position_id": 4150, "txt": "data", "x": "/html/body/div[3]/main/div/div[3]/article/p[27]/code"}, {"position_id": 4152, "txt": " field:", "x": "/html/body/div[3]/main/div/div[3]/article/p[27]/code"}]}, "tags": [], "label": "content", "web_segment_id": 50, "global_sentence_id": 83, "edu_l1_label": "IOS"}, {"txt": "{\"tomatoes\":", "language": "english", "position": {"atoms": [{"position_id": 4154, "txt": "{", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[1]/span"}, {"position_id": 4156, "txt": "\"tomatoes\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[2]/span[2]"}, {"position_id": 4158, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[2]/span[3]"}]}, "tags": [], "label": "code", "web_segment_id": 51, "global_sentence_id": 84, "edu_l1_label": "IOS"}, {"txt": "42,\"melons\":", "language": "english", "position": {"atoms": [{"position_id": 4160, "txt": "42", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[2]/span[5]"}, {"position_id": 4162, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[2]/span[6]"}, {"position_id": 4164, "txt": "\"melons\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[3]/span[2]"}, {"position_id": 4166, "txt": ":", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[3]/span[3]"}]}, "tags": [], "label": "code", "web_segment_id": 51, "global_sentence_id": 85, "edu_l1_label": "IOS"}, {"txt": "12}", "language": "english", "position": {"atoms": [{"position_id": 4168, "txt": "12", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[3]/span[5]"}, {"position_id": 4170, "txt": "}", "x": "/html/body/div[3]/main/div/div[3]/article/div[11]/pre/code/span[4]/span"}]}, "tags": [], "label": "code", "web_segment_id": 51, "global_sentence_id": 86, "edu_l1_label": "IOS"}, {"txt": "Now how do we get our number of melons for the municipalitie code 99999 in 2024? This is done using special operators:", "language": "english", "position": {"atoms": [{"position_id": 4172, "txt": "Now how do we get our number of melons for the municipalitie code 99999 in 2024? This is done using special operators:", "x": "/html/body/div[3]/main/div/div[3]/article/p[28]"}]}, "tags": [], "label": "content", "web_segment_id": 52, "global_sentence_id": 87, "edu_l1_label": "IOS"}, {"txt": "jsonb_field -> 'key' retrieves the value of a key while preserving its json type", "language": "english", "position": {"atoms": [{"position_id": 4174, "txt": "jsonb_field -> 'key'", "x": "/html/body/div[3]/main/div/div[3]/article/ul[4]/li[1]/code"}, {"position_id": 4176, "txt": " retrieves the value of a key while preserving its json type", "x": "/html/body/div[3]/main/div/div[3]/article/ul[4]/li[1]/code"}]}, "tags": ["li"], "label": "content", "web_segment_id": 53, "global_sentence_id": 88, "edu_l1_label": "IOS"}, {"txt": "jsonb_field ->> 'key' does the same, transforming the value into a “classic” sql type", "language": "english", "position": {"atoms": [{"position_id": 4178, "txt": "jsonb_field ->> 'key'", "x": "/html/body/div[3]/main/div/div[3]/article/ul[4]/li[2]/code"}, {"position_id": 4180, "txt": " does the same, transforming the value into a “classic” sql type", "x": "/html/body/div[3]/main/div/div[3]/article/ul[4]/li[2]/code"}]}, "tags": ["li"], "label": "content", "web_segment_id": 54, "global_sentence_id": 89, "edu_l1_label": "IOS"}, {"txt": "SELECT(donnees->>'melons')::", "language": "english", "position": {"atoms": [{"position_id": 4182, "txt": "SELECT", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[1]/span"}, {"position_id": 4184, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[2]"}, {"position_id": 4186, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[3]"}, {"position_id": 4188, "txt": "->>", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[5]"}, {"position_id": 4190, "txt": "'melons'", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[7]"}, {"position_id": 4192, "txt": ")::", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[8]"}]}, "tags": [], "label": "code", "web_segment_id": 55, "global_sentence_id": 90, "edu_l1_label": "EDU_O"}, {"txt": "int4ASnb_melonsFROMinsee.donnees_communesWHEREdonnees?'melons'ANDcode_commune='99999'ANDannee=2024", "language": "english", "position": {"atoms": [{"position_id": 4194, "txt": "int4", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[9]"}, {"position_id": 4196, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[11]"}, {"position_id": 4198, "txt": "nb_melons", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[2]/span[13]"}, {"position_id": 4200, "txt": "FROM", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[3]/span[1]"}, {"position_id": 4202, "txt": "insee", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[3]/span[3]"}, {"position_id": 4204, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[3]/span[4]"}, {"position_id": 4206, "txt": "donnees_communes", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[3]/span[5]"}, {"position_id": 4208, "txt": "WHERE", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[4]/span"}, {"position_id": 4210, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[5]/span[2]"}, {"position_id": 4212, "txt": "?", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[5]/span[4]"}, {"position_id": 4214, "txt": "'melons'", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[5]/span[6]"}, {"position_id": 4216, "txt": "AND", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[6]/span[2]"}, {"position_id": 4218, "txt": "code_commune", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[6]/span[4]"}, {"position_id": 4220, "txt": "=", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[6]/span[6]"}, {"position_id": 4222, "txt": "'99999'", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[6]/span[8]"}, {"position_id": 4224, "txt": "AND", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[7]/span[2]"}, {"position_id": 4226, "txt": "annee", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[7]/span[4]"}, {"position_id": 4228, "txt": "=", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[7]/span[6]"}, {"position_id": 4230, "txt": "2024", "x": "/html/body/div[3]/main/div/div[3]/article/div[12]/pre/code/span[7]/span[8]"}]}, "tags": [], "label": "code", "web_segment_id": 55, "global_sentence_id": 91, "edu_l1_label": "EDU_O"}, {"txt": "You can see that I'm using the ?", "language": "english", "position": {"atoms": [{"position_id": 4232, "txt": "You can see that I'm using the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]"}, {"position_id": 4234, "txt": "?", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 56, "global_sentence_id": 92, "edu_l1_label": "IOS"}, {"txt": " operator, which is only valid for jsonb fields and not for simple json fields.", "language": "english", "position": {"atoms": [{"position_id": 4236, "txt": " operator, which is only valid for ", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[1]"}, {"position_id": 4238, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[2]"}, {"position_id": 4240, "txt": " fields and not for simple ", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[2]"}, {"position_id": 4242, "txt": "json", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[3]"}, {"position_id": 4244, "txt": " fields.", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 56, "global_sentence_id": 93, "edu_l1_label": "IOS"}, {"txt": " This is because, when a json/jsonb field is queried, all the records in the table are returned, even those that don't contain the key.", "language": "english", "position": {"atoms": [{"position_id": 4245, "txt": " This is because, when a json/jsonb field is queried, all the records in the table are returned, even those that don't contain the key.", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 56, "global_sentence_id": 94, "edu_l1_label": "IOS"}, {"txt": " So if your table contains 100,000 records, but only 100 contain the key “melons”, not specifying this WHERE clause would return 100,000 rows, 99,900 of which would be NULL.?", "language": "english", "position": {"atoms": [{"position_id": 4246, "txt": " So if your table contains 100,000 records, but only 100 contain the key “melons”, not specifying this WHERE clause would return 100,000 rows, 99,900 of which would be ", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[3]"}, {"position_id": 4248, "txt": "NULL", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[4]"}, {"position_id": 4250, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[4]"}, {"position_id": 4252, "txt": "?", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[5]"}]}, "tags": [], "label": "content", "web_segment_id": 56, "global_sentence_id": 95, "edu_l1_label": "IOS"}, {"txt": " is a json operator used to ask the question “Is the key present at the first level of the json field for this record?”, and we'd only get our 100 records containing the key “melons”.", "language": "english", "position": {"atoms": [{"position_id": 4254, "txt": " is a json operator used to ask the question “Is the key present at the first level of the json field for this record?”, and we'd only get our 100 records containing the key “melons”.", "x": "/html/body/div[3]/main/div/div[3]/article/p[29]/code[5]"}]}, "tags": [], "label": "content", "web_segment_id": 56, "global_sentence_id": 96, "edu_l1_label": "IOS"}, {"txt": "If you're still here, I assume you already know this.", "language": "english", "position": {"atoms": [{"position_id": 4256, "txt": "If you're still here, I assume you already know this.", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]"}]}, "tags": [], "label": "content", "web_segment_id": 57, "global_sentence_id": 97, "edu_l1_label": "IOS"}, {"txt": " However, the form (something)::", "language": "english", "position": {"atoms": [{"position_id": 4257, "txt": " However, the form ", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]"}, {"position_id": 4259, "txt": "(something)::", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 57, "global_sentence_id": 98, "edu_l1_label": "IOS"}, {"txt": "(type) is a PostgreSQL shortcut for making a cast, i.e. converting a value into another type.", "language": "english", "position": {"atoms": [{"position_id": 4260, "txt": "(type)", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[1]"}, {"position_id": 4262, "txt": " is a PostgreSQL shortcut for making a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[1]"}, {"position_id": 4264, "txt": "cast", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[2]"}, {"position_id": 4266, "txt": ", i.e. converting a value into another type.", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 57, "global_sentence_id": 99, "edu_l1_label": "IOS"}, {"txt": " With ->> the value is returned to us as text and we convert it into an integer.", "language": "english", "position": {"atoms": [{"position_id": 4267, "txt": " With ", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[2]"}, {"position_id": 4269, "txt": "->>", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[3]"}, {"position_id": 4271, "txt": " the value is returned to us as text and we convert it into an integer.", "x": "/html/body/div[3]/main/div/div[3]/article/p[30]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 57, "global_sentence_id": 100, "edu_l1_label": "IOS"}, {"txt": "With nested JSON#", "language": "english", "position": {"atoms": [{"position_id": 4273, "txt": "With nested JSON", "x": "/html/body/div[3]/main/div/div[3]/article/h3[2]"}, {"position_id": 4275, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h3[2]/a"}]}, "tags": ["h3"], "label": "title2", "web_segment_id": 58, "global_sentence_id": 101, "edu_l1_label": "IOS"}, {"txt": "Well, he's a nice guy, but his JSON is still JSON where everything is on the first level.", "language": "english", "position": {"atoms": [{"position_id": 4277, "txt": "Well, he's a nice guy, but his JSON is still JSON where everything is on the first level.", "x": "/html/body/div[3]/main/div/div[3]/article/p[31]"}]}, "tags": [], "label": "content", "web_segment_id": 59, "global_sentence_id": 102, "edu_l1_label": "IOS"}, {"txt": " Well, for my needs, that was enough.", "language": "english", "position": {"atoms": [{"position_id": 4278, "txt": " Well, for my needs, that was enough.", "x": "/html/body/div[3]/main/div/div[3]/article/p[31]"}]}, "tags": [], "label": "content", "web_segment_id": 59, "global_sentence_id": 103, "edu_l1_label": "IOS"}, {"txt": " But I'm not going to run away from my responsibilities and we'll see how it goes with more complex JSON.", "language": "english", "position": {"atoms": [{"position_id": 4279, "txt": " But I'm not going to run away from my responsibilities and we'll see how it goes with more complex JSON.", "x": "/html/body/div[3]/main/div/div[3]/article/p[31]"}]}, "tags": [], "label": "content", "web_segment_id": 59, "global_sentence_id": 104, "edu_l1_label": "IOS"}, {"txt": " I'll use the example from the previous section to make things more complex after this aside.", "language": "english", "position": {"atoms": [{"position_id": 4281, "txt": " I'll use the example from the previous section to make things more complex after this aside.", "x": "/html/body/div[3]/main/div/div[3]/article/p[31]/br"}]}, "tags": ["br"], "label": "content", "web_segment_id": 60, "global_sentence_id": 105, "edu_l1_label": "IOS"}, {"txt": "To inject complex json into a field, we have two solutions:", "language": "english", "position": {"atoms": [{"position_id": 4283, "txt": "To inject complex json into a field, we have two solutions:", "x": "/html/body/div[3]/main/div/div[3]/article/p[32]"}]}, "tags": [], "label": "content", "web_segment_id": 61, "global_sentence_id": 106, "edu_l1_label": "IOS"}, {"txt": " nesting dedicated functions, or castering a text string.", "language": "english", "position": {"atoms": [{"position_id": 4284, "txt": " nesting dedicated functions, or castering a text string.", "x": "/html/body/div[3]/main/div/div[3]/article/p[32]"}]}, "tags": [], "label": "content", "web_segment_id": 61, "global_sentence_id": 107, "edu_l1_label": "IOS"}, {"txt": " Let's imagine a “test” table, in a “test” schema, with a jsonb field named “donnees”.", "language": "english", "position": {"atoms": [{"position_id": 4285, "txt": " Let's imagine a “test” table, in a “test” schema, with a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[32]"}, {"position_id": 4287, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/p[32]/code"}, {"position_id": 4289, "txt": " field named “donnees”.", "x": "/html/body/div[3]/main/div/div[3]/article/p[32]/code"}]}, "tags": [], "label": "content", "web_segment_id": 61, "global_sentence_id": 108, "edu_l1_label": "IOS"}, {"txt": "INSERTINTOtest.test(donnees)VALUES(jsonb_object('key1','value1','key2',jsonb_array('foo','bar','baz')))", "language": "english", "position": {"atoms": [{"position_id": 4291, "txt": "INSERT", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[1]"}, {"position_id": 4293, "txt": "INTO", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[3]"}, {"position_id": 4295, "txt": "test", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[5]"}, {"position_id": 4297, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[6]"}, {"position_id": 4299, "txt": "test", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[7]"}, {"position_id": 4301, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[9]"}, {"position_id": 4303, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[10]"}, {"position_id": 4305, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[11]"}, {"position_id": 4307, "txt": "VALUES", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[1]/span[13]"}, {"position_id": 4309, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[2]/span[1]"}, {"position_id": 4311, "txt": "jsonb_object", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[2]/span[2]"}, {"position_id": 4313, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[2]/span[3]"}, {"position_id": 4315, "txt": "'key1'", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[3]/span[2]"}, {"position_id": 4317, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[3]/span[3]"}, {"position_id": 4319, "txt": "'value1'", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[3]/span[5]"}, {"position_id": 4321, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[3]/span[6]"}, {"position_id": 4323, "txt": "'key2'", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[4]/span[2]"}, {"position_id": 4325, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[4]/span[3]"}, {"position_id": 4327, "txt": "jsonb_array", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[4]/span[5]"}, {"position_id": 4329, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[4]/span[6]"}, {"position_id": 4331, "txt": "'foo'", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[5]/span[2]"}, {"position_id": 4333, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[5]/span[3]"}, {"position_id": 4335, "txt": "'bar'", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[5]/span[5]"}, {"position_id": 4337, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[5]/span[6]"}, {"position_id": 4339, "txt": "'baz'", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[5]/span[8]"}, {"position_id": 4341, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[5]/span[9]"}, {"position_id": 4343, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[6]/span[2]"}, {"position_id": 4345, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[13]/pre/code/span[7]/span[2]"}]}, "tags": [], "label": "code", "web_segment_id": 62, "global_sentence_id": 109, "edu_l1_label": "IOS"}, {"txt": "This insertion could just as easily be written as a cast from a text string to jsonb.", "language": "english", "position": {"atoms": [{"position_id": 4347, "txt": "This insertion could just as easily be written as a cast from a text string to jsonb.", "x": "/html/body/div[3]/main/div/div[3]/article/p[33]"}]}, "tags": [], "label": "content", "web_segment_id": 63, "global_sentence_id": 110, "edu_l1_label": "IOS"}, {"txt": " Please note that the json syntax must be respected here:", "language": "english", "position": {"atoms": [{"position_id": 4348, "txt": " Please note that the json syntax must be respected here:", "x": "/html/body/div[3]/main/div/div[3]/article/p[33]"}]}, "tags": [], "label": "content", "web_segment_id": 63, "global_sentence_id": 111, "edu_l1_label": "IOS"}, {"txt": "INSERTINTOtest.test(donnees)VALUES('{\"key1\": \"", "language": "english", "position": {"atoms": [{"position_id": 4350, "txt": "INSERT", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[1]"}, {"position_id": 4352, "txt": "INTO", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[3]"}, {"position_id": 4354, "txt": "test", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[5]"}, {"position_id": 4356, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[6]"}, {"position_id": 4358, "txt": "test", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[7]"}, {"position_id": 4360, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[9]"}, {"position_id": 4362, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[10]"}, {"position_id": 4364, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[11]"}, {"position_id": 4366, "txt": "VALUES", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[1]/span[13]"}, {"position_id": 4368, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[1]"}, {"position_id": 4370, "txt": "'{\"key1\": \"", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[2]"}]}, "tags": [], "label": "code", "web_segment_id": 64, "global_sentence_id": 112, "edu_l1_label": "IOS"}, {"txt": "value1\", \"key2\":", "language": "english", "position": {"atoms": [{"position_id": 4371, "txt": "value1\", \"key2\":", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[2]"}]}, "tags": [], "label": "code", "web_segment_id": 64, "global_sentence_id": 113, "edu_l1_label": "EDU_O"}, {"txt": " [\"foo\", \"bar\", \"baz\"]}'::", "language": "english", "position": {"atoms": [{"position_id": 4372, "txt": " [\"foo\", \"bar\", \"baz\"]}'", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[2]"}, {"position_id": 4374, "txt": "::", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[3]"}]}, "tags": [], "label": "code", "web_segment_id": 64, "global_sentence_id": 114, "edu_l1_label": "EDU_O"}, {"txt": "jsonb)", "language": "english", "position": {"atoms": [{"position_id": 4376, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[4]"}, {"position_id": 4378, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[14]/pre/code/span[2]/span[5]"}]}, "tags": [], "label": "code", "web_segment_id": 64, "global_sentence_id": 115, "edu_l1_label": "EDU_O"}, {"txt": "Data recovery#", "language": "english", "position": {"atoms": [{"position_id": 4380, "txt": "Data recovery", "x": "/html/body/div[3]/main/div/div[3]/article/h4"}, {"position_id": 4382, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h4/a"}]}, "tags": ["h4"], "label": "content", "web_segment_id": 65, "global_sentence_id": 116, "edu_l1_label": "IOS"}, {"txt": "To retrieve a value, we use the jsonb_path_query() function, which has two parameters:", "language": "english", "position": {"atoms": [{"position_id": 4384, "txt": "To retrieve a value, we use the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]"}, {"position_id": 4386, "txt": "jsonb_path_query()", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[1]"}, {"position_id": 4388, "txt": " function, which has two parameters:", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 66, "global_sentence_id": 117, "edu_l1_label": "IOS"}, {"txt": " the name of the field containing the json data, and the json_path to the value to be retrieved.", "language": "english", "position": {"atoms": [{"position_id": 4389, "txt": " ", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[1]"}, {"position_id": 4391, "txt": "the name of the field", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[2]"}, {"position_id": 4393, "txt": " containing the json data, and the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[2]"}, {"position_id": 4395, "txt": "json_path", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[3]"}, {"position_id": 4397, "txt": " to the value to be retrieved.", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 66, "global_sentence_id": 118, "edu_l1_label": "IOS"}, {"txt": " Let's imagine we want to retrieve the second value in the list contained in “key2” :", "language": "english", "position": {"atoms": [{"position_id": 4398, "txt": " Let's imagine we want to retrieve the second value in the list contained in “key2” :", "x": "/html/body/div[3]/main/div/div[3]/article/p[34]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 66, "global_sentence_id": 119, "edu_l1_label": "IOS"}, {"txt": "SELECTjsonb_path_query(donnees,'$.cle2[1]')FROMtest.test", "language": "english", "position": {"atoms": [{"position_id": 4400, "txt": "SELECT", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[1]/span"}, {"position_id": 4402, "txt": "jsonb_path_query", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[2]/span[2]"}, {"position_id": 4404, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[2]/span[3]"}, {"position_id": 4406, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[2]/span[4]"}, {"position_id": 4408, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[2]/span[5]"}, {"position_id": 4410, "txt": "'$.cle2[1]'", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[2]/span[7]"}, {"position_id": 4412, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[2]/span[8]"}, {"position_id": 4414, "txt": "FROM", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[3]/span[1]"}, {"position_id": 4416, "txt": "test", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[3]/span[3]"}, {"position_id": 4418, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[3]/span[4]"}, {"position_id": 4420, "txt": "test", "x": "/html/body/div[3]/main/div/div[3]/article/div[15]/pre/code/span[3]/span[5]"}]}, "tags": [], "label": "code", "web_segment_id": 67, "global_sentence_id": 120, "edu_l1_label": "IOS"}, {"txt": "The $ indicates the start of the returned json path.", "language": "english", "position": {"atoms": [{"position_id": 4422, "txt": "The ", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]"}, {"position_id": 4424, "txt": "$", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[1]"}, {"position_id": 4426, "txt": " indicates the start of the returned json path.", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 68, "global_sentence_id": 121, "edu_l1_label": "IOS"}, {"txt": " We follow this first symbol with a dot to move on to the next object.", "language": "english", "position": {"atoms": [{"position_id": 4427, "txt": " We follow this first symbol with a dot to move on to the next object.", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 68, "global_sentence_id": 122, "edu_l1_label": "IOS"}, {"txt": " Then, by the next key name and so on up to the searched key, to which we paste a [1] for the 2ᵉ value in the list (values start at 0).", "language": "english", "position": {"atoms": [{"position_id": 4428, "txt": " Then, by the next key name and so on up to the searched key, to which we paste a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[1]"}, {"position_id": 4430, "txt": "[1]", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[2]"}, {"position_id": 4432, "txt": " for the 2ᵉ value in the list (values start at 0).", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 68, "global_sentence_id": 123, "edu_l1_label": "IOS"}, {"txt": " For more information on json_path, please refer to the documentation.", "language": "english", "position": {"atoms": [{"position_id": 4433, "txt": " For more information on ", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[2]"}, {"position_id": 4435, "txt": "json_path", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[3]"}, {"position_id": 4437, "txt": ", please refer to the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/code[3]"}, {"position_id": 4439, "txt": "documentation", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/a"}, {"position_id": 4441, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[35]/a"}]}, "tags": [], "label": "content", "web_segment_id": 68, "global_sentence_id": 124, "edu_l1_label": "IOS"}, {"txt": "Let's tackle the census#", "language": "english", "position": {"atoms": [{"position_id": 4443, "txt": "Let's tackle the census", "x": "/html/body/div[3]/main/div/div[3]/article/h2[6]"}, {"position_id": 4445, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[6]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 69, "global_sentence_id": 125, "edu_l1_label": "BOS"}, {"txt": "Well, now that we've tried to explain the concepts as best we can with simple examples, because we've got to start somewhere, let's try something a little more voluminous.", "language": "english", "position": {"atoms": [{"position_id": 4447, "txt": "Well, now that we've tried to explain the concepts as best we can with simple examples, because we've got to start somewhere, let's try something a little more voluminous.", "x": "/html/body/div[3]/main/div/div[3]/article/p[37]"}]}, "tags": [], "label": "content", "web_segment_id": 70, "global_sentence_id": 126, "edu_l1_label": "IOS"}, {"txt": "Let's retrieve the latest population data from the municipal census in csv format from the Insee website (you'll want the bases for the main indicators, sorry page not available in english).", "language": "english", "position": {"atoms": [{"position_id": 4449, "txt": "Let's retrieve the latest population data from the municipal census ", "x": "/html/body/div[3]/main/div/div[3]/article/p[38]"}, {"position_id": 4451, "txt": "in csv format from the Insee website", "x": "/html/body/div[3]/main/div/div[3]/article/p[38]/a"}, {"position_id": 4453, "txt": " (you'll want the bases for the main indicators, sorry page not available in english).", "x": "/html/body/div[3]/main/div/div[3]/article/p[38]/a"}]}, "tags": [], "label": "content", "web_segment_id": 71, "global_sentence_id": 127, "edu_l1_label": "IOS"}, {"txt": " For this example, we'll use the “Evolution et structure de la population” file.", "language": "english", "position": {"atoms": [{"position_id": 4454, "txt": " For this example, we'll use the “Evolution et structure de la population” file.", "x": "/html/body/div[3]/main/div/div[3]/article/p[38]/a"}]}, "tags": [], "label": "content", "web_segment_id": 71, "global_sentence_id": 128, "edu_l1_label": "IOS"}, {"txt": " First, clean up the field names.", "language": "english", "position": {"atoms": [{"position_id": 4455, "txt": " First, clean up the field names.", "x": "/html/body/div[3]/main/div/div[3]/article/p[38]/a"}]}, "tags": [], "label": "content", "web_segment_id": 71, "global_sentence_id": 129, "edu_l1_label": "IOS"}, {"txt": " Insee systematically indicates the year in its field names, which means that they change every year for the same indicator.", "language": "english", "position": {"atoms": [{"position_id": 4456, "txt": " Insee systematically indicates the year in its field names, which means that they change every year for the same indicator.", "x": "/html/body/div[3]/main/div/div[3]/article/p[38]/a"}]}, "tags": [], "label": "content", "web_segment_id": 71, "global_sentence_id": 130, "edu_l1_label": "IOS"}, {"txt": "All field names begin with P or C, indicating main survey (raw answers to census questions) or complementary survey (cross-referencing of answers to establish an indicator).", "language": "english", "position": {"atoms": [{"position_id": 4458, "txt": "All field names begin with P or C, indicating ", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]"}, {"position_id": 4460, "txt": "main survey", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[1]"}, {"position_id": 4462, "txt": " (raw answers to census questions) or ", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[1]"}, {"position_id": 4464, "txt": "complementary survey", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[2]"}, {"position_id": 4466, "txt": " (cross-referencing of answers to establish an indicator).", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[2]"}]}, "tags": ["em"], "label": "content", "web_segment_id": 72, "global_sentence_id": 131, "edu_l1_label": "IOS"}, {"txt": " Fields from the main survey and those from the complementary survey must not be cross-referenced.", "language": "english", "position": {"atoms": [{"position_id": 4467, "txt": " Fields from the main survey and those from the complementary survey must not be cross-referenced.", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[2]"}]}, "tags": ["em"], "label": "content", "web_segment_id": 72, "global_sentence_id": 132, "edu_l1_label": "IOS"}, {"txt": " This information should obviously be kept, but for personal reasons, I prefer to put it at the end of the name rather than at the beginning.", "language": "english", "position": {"atoms": [{"position_id": 4468, "txt": " This information should obviously be kept, but for personal reasons, I prefer to put it at the end of the name rather than at the beginning.", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[2]"}]}, "tags": ["em"], "label": "content", "web_segment_id": 72, "global_sentence_id": 133, "edu_l1_label": "IOS"}, {"txt": " In this way, we move from normalized fields such as P18_POP to a normalization of this type POP_P.", "language": "english", "position": {"atoms": [{"position_id": 4469, "txt": " In this way, we move from normalized fields such as ", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/em[2]"}, {"position_id": 4471, "txt": "P18_POP", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/code[1]"}, {"position_id": 4473, "txt": " to a normalization of this type ", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/code[1]"}, {"position_id": 4475, "txt": "POP_P", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/code[2]"}, {"position_id": 4477, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[39]/code[2]"}]}, "tags": ["em"], "label": "content", "web_segment_id": 72, "global_sentence_id": 134, "edu_l1_label": "IOS"}, {"txt": "You'll find here a spreadsheet to take care of all this.", "language": "english", "position": {"atoms": [{"position_id": 4479, "txt": "You'll find ", "x": "/html/body/div[3]/main/div/div[3]/article/p[40]"}, {"position_id": 4481, "txt": "here", "x": "/html/body/div[3]/main/div/div[3]/article/p[40]/a"}, {"position_id": 4483, "txt": " a spreadsheet to take care of all this.", "x": "/html/body/div[3]/main/div/div[3]/article/p[40]/a"}]}, "tags": [], "label": "content", "web_segment_id": 73, "global_sentence_id": 135, "edu_l1_label": "IOS"}, {"txt": "Before inserting the data into our table, we'll go through a temporary table to make the data accessible in Postgres.", "language": "english", "position": {"atoms": [{"position_id": 4485, "txt": "Before inserting the data into our table, we'll go through a temporary table to make the data accessible in Postgres.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 136, "edu_l1_label": "IOS"}, {"txt": " Using Postgresql's COPY would be tedious, as you'd have to specify the hundred or so fields contained in the census population section of the command.", "language": "english", "position": {"atoms": [{"position_id": 4486, "txt": " Using Postgresql's ", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]"}, {"position_id": 4488, "txt": "COPY", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}, {"position_id": 4490, "txt": " would be tedious, as you'd have to specify the hundred or so fields contained in the census population section of the command.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 137, "edu_l1_label": "IOS"}, {"txt": " And I'm not ashamed to say that I've got a baobab in my hand at the thought.", "language": "english", "position": {"atoms": [{"position_id": 4491, "txt": " And I'm not ashamed to say that I've got a baobab in my hand at the thought.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 138, "edu_l1_label": "IOS"}, {"txt": " So we pull out this wonderful software called QGIS.", "language": "english", "position": {"atoms": [{"position_id": 4492, "txt": " So we pull out this wonderful software called QGIS.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 139, "edu_l1_label": "IOS"}, {"txt": " We activate the Explorer and Explorer2 panels.", "language": "english", "position": {"atoms": [{"position_id": 4493, "txt": " We activate the Explorer and Explorer2 panels.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 140, "edu_l1_label": "IOS"}, {"txt": " We create a connection to the database with creation rights, and with a graceful flick of the wrist, we drag the file from the Explorer panel to the Postgres database in Explorer2.", "language": "english", "position": {"atoms": [{"position_id": 4494, "txt": " We create a connection to the database with creation rights, and with a graceful flick of the wrist, we drag the file from the Explorer panel to the Postgres database in Explorer2.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 141, "edu_l1_label": "IOS"}, {"txt": " Let the magic happen.", "language": "english", "position": {"atoms": [{"position_id": 4495, "txt": " Let the magic happen.", "x": "/html/body/div[3]/main/div/div[3]/article/p[41]/code"}]}, "tags": [], "label": "content", "web_segment_id": 74, "global_sentence_id": 142, "edu_l1_label": "IOS"}, {"txt": "Now, get ready for perhaps one of the weirdest INSERTs of your life (at least, it was for me!).", "language": "english", "position": {"atoms": [{"position_id": 4497, "txt": "Now, get ready for perhaps one of the weirdest INSERTs of your life (at least, it was for me!).", "x": "/html/body/div[3]/main/div/div[3]/article/p[42]"}]}, "tags": [], "label": "content", "web_segment_id": 75, "global_sentence_id": 143, "edu_l1_label": "IOS"}, {"txt": " Ugh.", "language": "english", "position": {"atoms": [{"position_id": 4498, "txt": " Ugh.", "x": "/html/body/div[3]/main/div/div[3]/article/p[42]"}]}, "tags": [], "label": "content", "web_segment_id": 75, "global_sentence_id": 144, "edu_l1_label": "IOS"}, {"txt": " I realize that if I wanted to do this right, I'd also have to explain CTE.", "language": "english", "position": {"atoms": [{"position_id": 4499, "txt": " I realize that if I wanted to do this right, I'd also have to explain ", "x": "/html/body/div[3]/main/div/div[3]/article/p[42]"}, {"position_id": 4501, "txt": "CTE", "x": "/html/body/div[3]/main/div/div[3]/article/p[42]/a"}, {"position_id": 4503, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[42]/a"}]}, "tags": [], "label": "content", "web_segment_id": 75, "global_sentence_id": 145, "edu_l1_label": "IOS"}, {"txt": " But I'll let you click on the link so as not to make it too long.", "language": "english", "position": {"atoms": [{"position_id": 4504, "txt": " But I'll let you click on the link so as not to make it too long.", "x": "/html/body/div[3]/main/div/div[3]/article/p[42]/a"}]}, "tags": [], "label": "content", "web_segment_id": 75, "global_sentence_id": 146, "edu_l1_label": "IOS"}, {"txt": "We're going to use the CTE to concatenate the name we want to give to our keys with the values contained in our temporary table in a string separated by ,.", "language": "english", "position": {"atoms": [{"position_id": 4506, "txt": "We're going to use the CTE to concatenate the name we want to give to our keys with the values contained in our temporary table in a string separated by ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]"}, {"position_id": 4508, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[1]"}, {"position_id": 4510, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 147, "edu_l1_label": "IOS"}, {"txt": " We'll send it to a string_to_array() function and then to a jsonb_object() function.", "language": "english", "position": {"atoms": [{"position_id": 4511, "txt": " We'll send it to a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[1]"}, {"position_id": 4513, "txt": "string_to_array()", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[2]"}, {"position_id": 4515, "txt": " function and then to a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[2]"}, {"position_id": 4517, "txt": "jsonb_object()", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[3]"}, {"position_id": 4519, "txt": " function.", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 148, "edu_l1_label": "IOS"}, {"txt": " We'll also take the opportunity to clean up any tabs or carriage returns that might remain with a regular expression, using the regex_replace() function.", "language": "english", "position": {"atoms": [{"position_id": 4520, "txt": " We'll also take the opportunity to clean up any tabs or carriage returns that might remain with a regular expression, using the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[3]"}, {"position_id": 4522, "txt": "regex_replace()", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[4]"}, {"position_id": 4524, "txt": " function.", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[4]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 149, "edu_l1_label": "IOS"}, {"txt": " (These characters are called \\t,\\nand \\r).", "language": "english", "position": {"atoms": [{"position_id": 4525, "txt": " (These characters are called ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[4]"}, {"position_id": 4527, "txt": "\\t", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[5]"}, {"position_id": 4529, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[5]"}, {"position_id": 4531, "txt": "\\n", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[6]"}, {"position_id": 4533, "txt": "and ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[6]"}, {"position_id": 4535, "txt": "\\r", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[7]"}, {"position_id": 4537, "txt": ").", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[7]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 150, "edu_l1_label": "IOS"}, {"txt": " The latter function takes 3 arguments:", "language": "english", "position": {"atoms": [{"position_id": 4538, "txt": " The latter function takes 3 arguments:", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[7]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 151, "edu_l1_label": "IOS"}, {"txt": " the source string, the searched-for pattern and the replacement text.", "language": "english", "position": {"atoms": [{"position_id": 4539, "txt": " the source string, the searched-for ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[7]"}, {"position_id": 4541, "txt": "pattern", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[8]"}, {"position_id": 4543, "txt": " and the replacement text.", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[8]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 152, "edu_l1_label": "IOS"}, {"txt": " The optional g flag* is added to replace all occurrences found.", "language": "english", "position": {"atoms": [{"position_id": 4544, "txt": " The optional ", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[8]"}, {"position_id": 4546, "txt": "g", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[9]"}, {"position_id": 4548, "txt": " flag* is added to replace all occurrences found.", "x": "/html/body/div[3]/main/div/div[3]/article/p[43]/code[9]"}]}, "tags": [], "label": "content", "web_segment_id": 76, "global_sentence_id": 153, "edu_l1_label": "IOS"}, {"txt": "Note that if your temporary table has a name other than “rp_population_import”, you'll need to modify the FROM clause in the CTE.", "language": "english", "position": {"atoms": [{"position_id": 4550, "txt": "Note that if your temporary table has a name other than “rp_population_import”, you'll need to modify the FROM clause in the CTE.", "x": "/html/body/div[3]/main/div/div[3]/article/p[44]"}]}, "tags": [], "label": "content", "web_segment_id": 77, "global_sentence_id": 154, "edu_l1_label": "IOS"}, {"txt": "<table <table class=\"highlighttable\" position_id=\"1307\"><tbody position_id=\"1308\"><tr position_id=\"1309\"><th class=\"filename\" colspan=\"2\" position_id=\"1310\"><span class=\"filename\" position_id=\"1311\">The weirdest INSERT of your life (with a CTE)</span></th></tr><tr position_id=\"1312\"><td class=\"linenos\" position_id=\"1313\"><div class=\"linenodiv\" position_id=\"1314\"/></td><td class=\"code\" position_id=\"1559\"><div position_id=\"1560\"><pre id=\"__code_14\" position_id=\"1561\"><span position_id=\"1562\"/><code class=\"md-code__content\" tabindex=\"0\" position_id=\"1563\"><span id=\"__span-14-1\" position_id=\"1564\"><a id=\"__codelineno-14-1\" name=\"__codelineno-14-1\" position_id=\"1565\"/><span class=\"c1\" position_id=\"1566\">-- cte cte concatenating data with keys and cleaning up special characters.</span></span><span id=\"__span-14-2\" position_id=\"1567\"><a id=\"__codelineno-14-2\" name=\"__codelineno-14-2\" position_id=\"1568\"/><span class=\"k\" position_id=\"1569\">WITH</span><span class=\"w\" position_id=\"1570\"> </span><span class=\"n\" position_id=\"1571\">d</span><span class=\"w\" position_id=\"1572\"> </span><span class=\"k\" position_id=\"1573\">AS</span><span class=\"w\" position_id=\"1574\"> </span><span class=\"p\" position_id=\"1575\">(</span></span><span id=\"__span-14-3\" position_id=\"1576\"><a id=\"__codelineno-14-3\" name=\"__codelineno-14-3\" position_id=\"1577\"/><span class=\"w\" position_id=\"1578\">  </span><span class=\"k\" position_id=\"1579\">SELECT</span></span><span id=\"__span-14-4\" position_id=\"1580\"><a id=\"__codelineno-14-4\" name=\"__codelineno-14-4\" position_id=\"1581\"/><span class=\"w\" position_id=\"1582\"> </span><span class=\"n\" position_id=\"1583\">CODGEO</span><span class=\"p\" position_id=\"1584\">,</span></span><span id=\"__span-14-5\" position_id=\"1585\"><a id=\"__codelineno-14-5\" name=\"__codelineno-14-5\" position_id=\"1586\"/><span class=\"w\" position_id=\"1587\"> </span><span class=\"n\" position_id=\"1588\">regexp_replace</span><span class=\"p\" position_id=\"1589\">(</span><span class=\"s1\" position_id=\"1590\">&apos;pop_p,&apos;</span><span class=\"w\" position_id=\"1591\"> </span><span class=\"o\" position_id=\"1592\">||</span><span class=\"w\" position_id=\"1593\"> </span><span class=\"n\" position_id=\"1594\">POP_P</span><span class=\"w\" position_id=\"1595\"> </span><span class=\"o\" position_id=\"1596\">||</span><span class=\"w\" position_id=\"1597\"> </span><span class=\"s1\" position_id=\"1598\">&apos;,</span></span><span id=\"__span-14-6\" position_id=\"1599\"><a id=\"__codelineno-14-6\" name=\"__codelineno-14-6\" position_id=\"1600\"/><span class=\"s1\" position_id=\"1601\">   pop_0_14_ans_p,&apos;</span><span class=\"w\" position_id=\"1602\"> </span><span class=\"o\" position_id=\"1603\">||</span><span class=\"w\" position_id=\"1604\"> </span><span class=\"n\" position_id=\"1605\">POP0014_P</span><span class=\"w\" position_id=\"1606\"> </span><span class=\"o\" position_id=\"1607\">||</span><span class=\"w\" position_id=\"1608\"> </span><span class=\"s1\" position_id=\"1609\">&apos;,</span></span><span id=\"__span-14-7\" position_id=\"1610\"><a id=\"__codelineno-14-7\" name=\"__codelineno-14-7\" position_id=\"1611\"/><span class=\"s1\" position_id=\"1612\">   pop_15_29_ans_p,&apos;</span><span class=\"w\" position_id=\"1613\"> </span><span class=\"o\" position_id=\"1614\">||</span><span class=\"w\" position_id=\"1615\"> </span><span class=\"n\" position_id=\"1616\">POP1529_P</span><span class=\"w\" position_id=\"1617\"> </span><span class=\"o\" position_id=\"1618\">||</span><span class=\"w\" position_id=\"1619\"> </span><span class=\"s1\" position_id=\"1620\">&apos;,</span></span><span id=\"__span-14-8\" position_id=\"1621\"><a id=\"__codelineno-14-8\" name=\"__codelineno-14-8\" position_id=\"1622\"/><span class=\"s1\" position_id=\"1623\">   pop_30_44_ans_p,&apos;</span><span class=\"w\" position_id=\"1624\"> </span><span class=\"o\" position_id=\"1625\">||</span><span class=\"w\" position_id=\"1626\"> </span><span class=\"n\" position_id=\"1627\">POP3044_P</span><span class=\"w\" position_id=\"1628\"> </span><span class=\"o\" position_id=\"1629\">||</span><span class=\"w\" position_id=\"1630\"> </span><span class=\"s1\" position_id=\"1631\">&apos;,</span></span><span id=\"__span-14-9\" position_id=\"1632\"><a id=\"__codelineno-14-9\" name=\"__codelineno-14-9\" position_id=\"1633\"/><span class=\"s1\" position_id=\"1634\">   pop_45_59_ans_p,&apos;</span><span class=\"w\" position_id=\"1635\"> </span><span class=\"o\" position_id=\"1636\">||</span><span class=\"w\" position_id=\"1637\"> </span><span class=\"n\" position_id=\"1638\">POP4559_P</span><span class=\"w\" position_id=\"1639\"> </span><span class=\"o\" position_id=\"1640\">||</span><span class=\"w\" position_id=\"1641\"> </span><span class=\"s1\" position_id=\"1642\">&apos;,</span></span><span id=\"__span-14-10\" position_id=\"1643\"><a id=\"__codelineno-14-10\" name=\"__codelineno-14-10\" position_id=\"1644\"/><span class=\"s1\" position_id=\"1645\">   pop_60_74_ans_p,&apos;</span><span class=\"w\" position_id=\"1646\"> </span><span class=\"o\" position_id=\"1647\">||</span><span class=\"w\" position_id=\"1648\"> </span><span class=\"n\" position_id=\"1649\">POP6074_P</span><span class=\"w\" position_id=\"1650\"> </span><span class=\"o\" position_id=\"1651\">||</span><span class=\"w\" position_id=\"1652\"> </span><span class=\"s1\" position_id=\"1653\">&apos;,</span></span><span id=\"__span-14-11\" position_id=\"1654\"><a id=\"__codelineno-14-11\" name=\"__codelineno-14-11\" position_id=\"1655\"/><span class=\"s1\" position_id=\"1656\">   pop_75_89_ans_p,&apos;</span><span class=\"w\" position_id=\"1657\"> </span><span class=\"o\" position_id=\"1658\">||</span><span class=\"w\" position_id=\"1659\"> </span><span class=\"n\" position_id=\"1660\">POP7589_P</span><span class=\"w\" position_id=\"1661\"> </span><span class=\"o\" position_id=\"1662\">||</span><span class=\"w\" position_id=\"1663\"> </span><span class=\"s1\" position_id=\"1664\">&apos;,</span></span><span id=\"__span-14-12\" position_id=\"1665\"><a id=\"__codelineno-14-12\" name=\"__codelineno-14-12\" position_id=\"1666\"/><span class=\"s1\" position_id=\"1667\">   pop_90_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1668\"> </span><span class=\"o\" position_id=\"1669\">||</span><span class=\"w\" position_id=\"1670\"> </span><span class=\"n\" position_id=\"1671\">POP90P_P</span><span class=\"w\" position_id=\"1672\"> </span><span class=\"o\" position_id=\"1673\">||</span><span class=\"w\" position_id=\"1674\"> </span><span class=\"s1\" position_id=\"1675\">&apos;,</span></span><span id=\"__span-14-13\" position_id=\"1676\"><a id=\"__codelineno-14-13\" name=\"__codelineno-14-13\" position_id=\"1677\"/><span class=\"s1\" position_id=\"1678\">   hommes_p,&apos;</span><span class=\"w\" position_id=\"1679\"> </span><span class=\"o\" position_id=\"1680\">||</span><span class=\"w\" position_id=\"1681\"> </span><span class=\"n\" position_id=\"1682\">POPH_P</span><span class=\"w\" position_id=\"1683\"> </span><span class=\"o\" position_id=\"1684\">||</span><span class=\"w\" position_id=\"1685\"> </span><span class=\"s1\" position_id=\"1686\">&apos;,</span></span><span id=\"__span-14-14\" position_id=\"1687\"><a id=\"__codelineno-14-14\" name=\"__codelineno-14-14\" position_id=\"1688\"/><span class=\"s1\" position_id=\"1689\">   hommes_0_14_ans_p,&apos;</span><span class=\"w\" position_id=\"1690\"> </span><span class=\"o\" position_id=\"1691\">||</span><span class=\"w\" position_id=\"1692\"> </span><span class=\"n\" position_id=\"1693\">H0014_P</span><span class=\"w\" position_id=\"1694\"> </span><span class=\"o\" position_id=\"1695\">||</span><span class=\"w\" position_id=\"1696\"> </span><span class=\"s1\" position_id=\"1697\">&apos;,</span></span><span id=\"__span-14-15\" position_id=\"1698\"><a id=\"__codelineno-14-15\" name=\"__codelineno-14-15\" position_id=\"1699\"/><span class=\"s1\" position_id=\"1700\">   hommes_15_29_ans_p,&apos;</span><span class=\"w\" position_id=\"1701\"> </span><span class=\"o\" position_id=\"1702\">||</span><span class=\"w\" position_id=\"1703\"> </span><span class=\"n\" position_id=\"1704\">H1529_P</span><span class=\"w\" position_id=\"1705\"> </span><span class=\"o\" position_id=\"1706\">||</span><span class=\"w\" position_id=\"1707\"> </span><span class=\"s1\" position_id=\"1708\">&apos;,</span></span><span id=\"__span-14-16\" position_id=\"1709\"><a id=\"__codelineno-14-16\" name=\"__codelineno-14-16\" position_id=\"1710\"/><span class=\"s1\" position_id=\"1711\">   hommes_30_44_ans_p,&apos;</span><span class=\"w\" position_id=\"1712\"> </span><span class=\"o\" position_id=\"1713\">||</span><span class=\"w\" position_id=\"1714\"> </span><span class=\"n\" position_id=\"1715\">H3044_P</span><span class=\"w\" position_id=\"1716\"> </span><span class=\"o\" position_id=\"1717\">||</span><span class=\"w\" position_id=\"1718\"> </span><span class=\"s1\" position_id=\"1719\">&apos;,</span></span><span id=\"__span-14-17\" position_id=\"1720\"><a id=\"__codelineno-14-17\" name=\"__codelineno-14-17\" position_id=\"1721\"/><span class=\"s1\" position_id=\"1722\">   hommes_45_59_ans_p,&apos;</span><span class=\"w\" position_id=\"1723\"> </span><span class=\"o\" position_id=\"1724\">||</span><span class=\"w\" position_id=\"1725\"> </span><span class=\"n\" position_id=\"1726\">H4559_P</span><span class=\"w\" position_id=\"1727\"> </span><span class=\"o\" position_id=\"1728\">||</span><span class=\"w\" position_id=\"1729\"> </span><span class=\"s1\" position_id=\"1730\">&apos;,</span></span><span id=\"__span-14-18\" position_id=\"1731\"><a id=\"__codelineno-14-18\" name=\"__codelineno-14-18\" position_id=\"1732\"/><span class=\"s1\" position_id=\"1733\">   hommes_60_74_ans_p,&apos;</span><span class=\"w\" position_id=\"1734\"> </span><span class=\"o\" position_id=\"1735\">||</span><span class=\"w\" position_id=\"1736\"> </span><span class=\"n\" position_id=\"1737\">H6074_P</span><span class=\"w\" position_id=\"1738\"> </span><span class=\"o\" position_id=\"1739\">||</span><span class=\"w\" position_id=\"1740\"> </span><span class=\"s1\" position_id=\"1741\">&apos;,</span></span><span id=\"__span-14-19\" position_id=\"1742\"><a id=\"__codelineno-14-19\" name=\"__codelineno-14-19\" position_id=\"1743\"/><span class=\"s1\" position_id=\"1744\">   hommes_75_89_ans_p,&apos;</span><span class=\"w\" position_id=\"1745\"> </span><span class=\"o\" position_id=\"1746\">||</span><span class=\"w\" position_id=\"1747\"> </span><span class=\"n\" position_id=\"1748\">H7589_P</span><span class=\"w\" position_id=\"1749\"> </span><span class=\"o\" position_id=\"1750\">||</span><span class=\"w\" position_id=\"1751\"> </span><span class=\"s1\" position_id=\"1752\">&apos;,</span></span><span id=\"__span-14-20\" position_id=\"1753\"><a id=\"__codelineno-14-20\" name=\"__codelineno-14-20\" position_id=\"1754\"/><span class=\"s1\" position_id=\"1755\">   hommes_90_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1756\"> </span><span class=\"o\" position_id=\"1757\">||</span><span class=\"w\" position_id=\"1758\"> </span><span class=\"n\" position_id=\"1759\">H90P_P</span><span class=\"w\" position_id=\"1760\"> </span><span class=\"o\" position_id=\"1761\">||</span><span class=\"w\" position_id=\"1762\"> </span><span class=\"s1\" position_id=\"1763\">&apos;,</span></span><span id=\"__span-14-21\" position_id=\"1764\"><a id=\"__codelineno-14-21\" name=\"__codelineno-14-21\" position_id=\"1765\"/><span class=\"s1\" position_id=\"1766\">   hommes_0_19_ans_p,&apos;</span><span class=\"w\" position_id=\"1767\"> </span><span class=\"o\" position_id=\"1768\">||</span><span class=\"w\" position_id=\"1769\"> </span><span class=\"n\" position_id=\"1770\">H0019_P</span><span class=\"w\" position_id=\"1771\"> </span><span class=\"o\" position_id=\"1772\">||</span><span class=\"w\" position_id=\"1773\"> </span><span class=\"s1\" position_id=\"1774\">&apos;,</span></span><span id=\"__span-14-22\" position_id=\"1775\"><a id=\"__codelineno-14-22\" name=\"__codelineno-14-22\" position_id=\"1776\"/><span class=\"s1\" position_id=\"1777\">   hommes_20_64_ans_p,&apos;</span><span class=\"w\" position_id=\"1778\"> </span><span class=\"o\" position_id=\"1779\">||</span><span class=\"w\" position_id=\"1780\"> </span><span class=\"n\" position_id=\"1781\">H2064_P</span><span class=\"w\" position_id=\"1782\"> </span><span class=\"o\" position_id=\"1783\">||</span><span class=\"w\" position_id=\"1784\"> </span><span class=\"s1\" position_id=\"1785\">&apos;,</span></span><span id=\"__span-14-23\" position_id=\"1786\"><a id=\"__codelineno-14-23\" name=\"__codelineno-14-23\" position_id=\"1787\"/><span class=\"s1\" position_id=\"1788\">   hommes_65_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1789\"> </span><span class=\"o\" position_id=\"1790\">||</span><span class=\"w\" position_id=\"1791\"> </span><span class=\"n\" position_id=\"1792\">H65P_P</span><span class=\"w\" position_id=\"1793\"> </span><span class=\"o\" position_id=\"1794\">||</span><span class=\"w\" position_id=\"1795\"> </span><span class=\"s1\" position_id=\"1796\">&apos;,</span></span><span id=\"__span-14-24\" position_id=\"1797\"><a id=\"__codelineno-14-24\" name=\"__codelineno-14-24\" position_id=\"1798\"/><span class=\"s1\" position_id=\"1799\">   femmes_p,&apos;</span><span class=\"w\" position_id=\"1800\"> </span><span class=\"o\" position_id=\"1801\">||</span><span class=\"w\" position_id=\"1802\"> </span><span class=\"n\" position_id=\"1803\">POPF_P</span><span class=\"w\" position_id=\"1804\"> </span><span class=\"o\" position_id=\"1805\">||</span><span class=\"w\" position_id=\"1806\"> </span><span class=\"s1\" position_id=\"1807\">&apos;,</span></span><span id=\"__span-14-25\" position_id=\"1808\"><a id=\"__codelineno-14-25\" name=\"__codelineno-14-25\" position_id=\"1809\"/><span class=\"s1\" position_id=\"1810\">   femmes_0_14_ans_p,&apos;</span><span class=\"w\" position_id=\"1811\"> </span><span class=\"o\" position_id=\"1812\">||</span><span class=\"w\" position_id=\"1813\"> </span><span class=\"n\" position_id=\"1814\">F0014_P</span><span class=\"w\" position_id=\"1815\"> </span><span class=\"o\" position_id=\"1816\">||</span><span class=\"w\" position_id=\"1817\"> </span><span class=\"s1\" position_id=\"1818\">&apos;,</span></span><span id=\"__span-14-26\" position_id=\"1819\"><a id=\"__codelineno-14-26\" name=\"__codelineno-14-26\" position_id=\"1820\"/><span class=\"s1\" position_id=\"1821\">   femmes_15_29_ans_p,&apos;</span><span class=\"w\" position_id=\"1822\"> </span><span class=\"o\" position_id=\"1823\">||</span><span class=\"w\" position_id=\"1824\"> </span><span class=\"n\" position_id=\"1825\">F1529_P</span><span class=\"w\" position_id=\"1826\"> </span><span class=\"o\" position_id=\"1827\">||</span><span class=\"w\" position_id=\"1828\"> </span><span class=\"s1\" position_id=\"1829\">&apos;,</span></span><span id=\"__span-14-27\" position_id=\"1830\"><a id=\"__codelineno-14-27\" name=\"__codelineno-14-27\" position_id=\"1831\"/><span class=\"s1\" position_id=\"1832\">   femmes_30_44_ans_p,&apos;</span><span class=\"w\" position_id=\"1833\"> </span><span class=\"o\" position_id=\"1834\">||</span><span class=\"w\" position_id=\"1835\"> </span><span class=\"n\" position_id=\"1836\">F3044_P</span><span class=\"w\" position_id=\"1837\"> </span><span class=\"o\" position_id=\"1838\">||</span><span class=\"w\" position_id=\"1839\"> </span><span class=\"s1\" position_id=\"1840\">&apos;,</span></span><span id=\"__span-14-28\" position_id=\"1841\"><a id=\"__codelineno-14-28\" name=\"__codelineno-14-28\" position_id=\"1842\"/><span class=\"s1\" position_id=\"1843\">   femmes_45_59_ans_p,&apos;</span><span class=\"w\" position_id=\"1844\"> </span><span class=\"o\" position_id=\"1845\">||</span><span class=\"w\" position_id=\"1846\"> </span><span class=\"n\" position_id=\"1847\">F4559_P</span><span class=\"w\" position_id=\"1848\"> </span><span class=\"o\" position_id=\"1849\">||</span><span class=\"w\" position_id=\"1850\"> </span><span class=\"s1\" position_id=\"1851\">&apos;,</span></span><span id=\"__span-14-29\" position_id=\"1852\"><a id=\"__codelineno-14-29\" name=\"__codelineno-14-29\" position_id=\"1853\"/><span class=\"s1\" position_id=\"1854\">   femmes_60_74_ans_p,&apos;</span><span class=\"w\" position_id=\"1855\"> </span><span class=\"o\" position_id=\"1856\">||</span><span class=\"w\" position_id=\"1857\"> </span><span class=\"n\" position_id=\"1858\">F6074_P</span><span class=\"w\" position_id=\"1859\"> </span><span class=\"o\" position_id=\"1860\">||</span><span class=\"w\" position_id=\"1861\"> </span><span class=\"s1\" position_id=\"1862\">&apos;,</span></span><span id=\"__span-14-30\" position_id=\"1863\"><a id=\"__codelineno-14-30\" name=\"__codelineno-14-30\" position_id=\"1864\"/><span class=\"s1\" position_id=\"1865\">   femmes_75_89_ans_p,&apos;</span><span class=\"w\" position_id=\"1866\"> </span><span class=\"o\" position_id=\"1867\">||</span><span class=\"w\" position_id=\"1868\"> </span><span class=\"n\" position_id=\"1869\">F7589_P</span><span class=\"w\" position_id=\"1870\"> </span><span class=\"o\" position_id=\"1871\">||</span><span class=\"w\" position_id=\"1872\"> </span><span class=\"s1\" position_id=\"1873\">&apos;,</span></span><span id=\"__span-14-31\" position_id=\"1874\"><a id=\"__codelineno-14-31\" name=\"__codelineno-14-31\" position_id=\"1875\"/><span class=\"s1\" position_id=\"1876\">   femmes_90_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1877\"> </span><span class=\"o\" position_id=\"1878\">||</span><span class=\"w\" position_id=\"1879\"> </span><span class=\"n\" position_id=\"1880\">F90P_P</span><span class=\"w\" position_id=\"1881\"> </span><span class=\"o\" position_id=\"1882\">||</span><span class=\"w\" position_id=\"1883\"> </span><span class=\"s1\" position_id=\"1884\">&apos;,</span></span><span id=\"__span-14-32\" position_id=\"1885\"><a id=\"__codelineno-14-32\" name=\"__codelineno-14-32\" position_id=\"1886\"/><span class=\"s1\" position_id=\"1887\">   femmes_0_19_ans_p,&apos;</span><span class=\"w\" position_id=\"1888\"> </span><span class=\"o\" position_id=\"1889\">||</span><span class=\"w\" position_id=\"1890\"> </span><span class=\"n\" position_id=\"1891\">F0019_P</span><span class=\"w\" position_id=\"1892\"> </span><span class=\"o\" position_id=\"1893\">||</span><span class=\"w\" position_id=\"1894\"> </span><span class=\"s1\" position_id=\"1895\">&apos;,</span></span><span id=\"__span-14-33\" position_id=\"1896\"><a id=\"__codelineno-14-33\" name=\"__codelineno-14-33\" position_id=\"1897\"/><span class=\"s1\" position_id=\"1898\">   femmes_20_64_ans_p,&apos;</span><span class=\"w\" position_id=\"1899\"> </span><span class=\"o\" position_id=\"1900\">||</span><span class=\"w\" position_id=\"1901\"> </span><span class=\"n\" position_id=\"1902\">F2064_P</span><span class=\"w\" position_id=\"1903\"> </span><span class=\"o\" position_id=\"1904\">||</span><span class=\"w\" position_id=\"1905\"> </span><span class=\"s1\" position_id=\"1906\">&apos;,</span></span><span id=\"__span-14-34\" position_id=\"1907\"><a id=\"__codelineno-14-34\" name=\"__codelineno-14-34\" position_id=\"1908\"/><span class=\"s1\" position_id=\"1909\">   femmes_65_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1910\"> </span><span class=\"o\" position_id=\"1911\">||</span><span class=\"w\" position_id=\"1912\"> </span><span class=\"n\" position_id=\"1913\">F65P_P</span><span class=\"w\" position_id=\"1914\"> </span><span class=\"o\" position_id=\"1915\">||</span><span class=\"w\" position_id=\"1916\"> </span><span class=\"s1\" position_id=\"1917\">&apos;,</span></span><span id=\"__span-14-35\" position_id=\"1918\"><a id=\"__codelineno-14-35\" name=\"__codelineno-14-35\" position_id=\"1919\"/><span class=\"s1\" position_id=\"1920\">   pop_1an_ou_plus_localisee_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1921\"> </span><span class=\"o\" position_id=\"1922\">||</span><span class=\"w\" position_id=\"1923\"> </span><span class=\"n\" position_id=\"1924\">POP01P_P</span><span class=\"w\" position_id=\"1925\"> </span><span class=\"o\" position_id=\"1926\">||</span><span class=\"w\" position_id=\"1927\"> </span><span class=\"s1\" position_id=\"1928\">&apos;,</span></span><span id=\"__span-14-36\" position_id=\"1929\"><a id=\"__codelineno-14-36\" name=\"__codelineno-14-36\" position_id=\"1930\"/><span class=\"s1\" position_id=\"1931\">   pop_1an_ou_plus_meme_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1932\"> </span><span class=\"o\" position_id=\"1933\">||</span><span class=\"w\" position_id=\"1934\"> </span><span class=\"n\" position_id=\"1935\">POP01P_IRAN1_P</span><span class=\"w\" position_id=\"1936\"> </span><span class=\"o\" position_id=\"1937\">||</span><span class=\"w\" position_id=\"1938\"> </span><span class=\"s1\" position_id=\"1939\">&apos;,</span></span><span id=\"__span-14-37\" position_id=\"1940\"><a id=\"__codelineno-14-37\" name=\"__codelineno-14-37\" position_id=\"1941\"/><span class=\"s1\" position_id=\"1942\">   pop_1an_ou_plus_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1943\"> </span><span class=\"o\" position_id=\"1944\">||</span><span class=\"w\" position_id=\"1945\"> </span><span class=\"n\" position_id=\"1946\">POP01P_IRAN2_P</span><span class=\"w\" position_id=\"1947\"> </span><span class=\"o\" position_id=\"1948\">||</span><span class=\"w\" position_id=\"1949\"> </span><span class=\"s1\" position_id=\"1950\">&apos;,</span></span><span id=\"__span-14-38\" position_id=\"1951\"><a id=\"__codelineno-14-38\" name=\"__codelineno-14-38\" position_id=\"1952\"/><span class=\"s1\" position_id=\"1953\">   pop_1an_ou_plus_meme_departement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1954\"> </span><span class=\"o\" position_id=\"1955\">||</span><span class=\"w\" position_id=\"1956\"> </span><span class=\"n\" position_id=\"1957\">POP01P_IRAN3_P</span><span class=\"w\" position_id=\"1958\"> </span><span class=\"o\" position_id=\"1959\">||</span><span class=\"w\" position_id=\"1960\"> </span><span class=\"s1\" position_id=\"1961\">&apos;,</span></span><span id=\"__span-14-39\" position_id=\"1962\"><a id=\"__codelineno-14-39\" name=\"__codelineno-14-39\" position_id=\"1963\"/><span class=\"s1\" position_id=\"1964\">   pop_1an_ou_plus_meme_region_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1965\"> </span><span class=\"o\" position_id=\"1966\">||</span><span class=\"w\" position_id=\"1967\"> </span><span class=\"n\" position_id=\"1968\">POP01P_IRAN4_P</span><span class=\"w\" position_id=\"1969\"> </span><span class=\"o\" position_id=\"1970\">||</span><span class=\"w\" position_id=\"1971\"> </span><span class=\"s1\" position_id=\"1972\">&apos;,</span></span><span id=\"__span-14-40\" position_id=\"1973\"><a id=\"__codelineno-14-40\" name=\"__codelineno-14-40\" position_id=\"1974\"/><span class=\"s1\" position_id=\"1975\">   pop_1an_ou_plus_autre_region_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1976\"> </span><span class=\"o\" position_id=\"1977\">||</span><span class=\"w\" position_id=\"1978\"> </span><span class=\"n\" position_id=\"1979\">POP01P_IRAN5_P</span><span class=\"w\" position_id=\"1980\"> </span><span class=\"o\" position_id=\"1981\">||</span><span class=\"w\" position_id=\"1982\"> </span><span class=\"s1\" position_id=\"1983\">&apos;,</span></span><span id=\"__span-14-41\" position_id=\"1984\"><a id=\"__codelineno-14-41\" name=\"__codelineno-14-41\" position_id=\"1985\"/><span class=\"s1\" position_id=\"1986\">   pop_1an_ou_plus_un_dom_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1987\"> </span><span class=\"o\" position_id=\"1988\">||</span><span class=\"w\" position_id=\"1989\"> </span><span class=\"n\" position_id=\"1990\">POP01P_IRAN6_P</span><span class=\"w\" position_id=\"1991\"> </span><span class=\"o\" position_id=\"1992\">||</span><span class=\"w\" position_id=\"1993\"> </span><span class=\"s1\" position_id=\"1994\">&apos;,</span></span><span id=\"__span-14-42\" position_id=\"1995\"><a id=\"__codelineno-14-42\" name=\"__codelineno-14-42\" position_id=\"1996\"/><span class=\"s1\" position_id=\"1997\">   pop_1an_ou_plus_hors_metropole_ou_dom_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1998\"> </span><span class=\"o\" position_id=\"1999\">||</span><span class=\"w\" position_id=\"2000\"> </span><span class=\"n\" position_id=\"2001\">POP01P_IRAN7_P</span><span class=\"w\" position_id=\"2002\"> </span><span class=\"o\" position_id=\"2003\">||</span><span class=\"w\" position_id=\"2004\"> </span><span class=\"s1\" position_id=\"2005\">&apos;,</span></span><span id=\"__span-14-43\" position_id=\"2006\"><a id=\"__codelineno-14-43\" name=\"__codelineno-14-43\" position_id=\"2007\"/><span class=\"s1\" position_id=\"2008\">   pop_1_14ans_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2009\"> </span><span class=\"o\" position_id=\"2010\">||</span><span class=\"w\" position_id=\"2011\"> </span><span class=\"n\" position_id=\"2012\">POP0114_IRAN2P_P</span><span class=\"w\" position_id=\"2013\"> </span><span class=\"o\" position_id=\"2014\">||</span><span class=\"w\" position_id=\"2015\"> </span><span class=\"s1\" position_id=\"2016\">&apos;,</span></span><span id=\"__span-14-44\" position_id=\"2017\"><a id=\"__codelineno-14-44\" name=\"__codelineno-14-44\" position_id=\"2018\"/><span class=\"s1\" position_id=\"2019\">   pop_1_14ans_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2020\"> </span><span class=\"o\" position_id=\"2021\">||</span><span class=\"w\" position_id=\"2022\"> </span><span class=\"n\" position_id=\"2023\">POP0114_IRAN2_P</span><span class=\"w\" position_id=\"2024\"> </span><span class=\"o\" position_id=\"2025\">||</span><span class=\"w\" position_id=\"2026\"> </span><span class=\"s1\" position_id=\"2027\">&apos;,</span></span><span id=\"__span-14-45\" position_id=\"2028\"><a id=\"__codelineno-14-45\" name=\"__codelineno-14-45\" position_id=\"2029\"/><span class=\"s1\" position_id=\"2030\">   pop_1_14ans_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2031\"> </span><span class=\"o\" position_id=\"2032\">||</span><span class=\"w\" position_id=\"2033\"> </span><span class=\"n\" position_id=\"2034\">POP0114_IRAN3P_P</span><span class=\"w\" position_id=\"2035\"> </span><span class=\"o\" position_id=\"2036\">||</span><span class=\"w\" position_id=\"2037\"> </span><span class=\"s1\" position_id=\"2038\">&apos;,</span></span><span id=\"__span-14-46\" position_id=\"2039\"><a id=\"__codelineno-14-46\" name=\"__codelineno-14-46\" position_id=\"2040\"/><span class=\"s1\" position_id=\"2041\">   pop_15_24ans_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2042\"> </span><span class=\"o\" position_id=\"2043\">||</span><span class=\"w\" position_id=\"2044\"> </span><span class=\"n\" position_id=\"2045\">POP1524_IRAN2P_P</span><span class=\"w\" position_id=\"2046\"> </span><span class=\"o\" position_id=\"2047\">||</span><span class=\"w\" position_id=\"2048\"> </span><span class=\"s1\" position_id=\"2049\">&apos;,</span></span><span id=\"__span-14-47\" position_id=\"2050\"><a id=\"__codelineno-14-47\" name=\"__codelineno-14-47\" position_id=\"2051\"/><span class=\"s1\" position_id=\"2052\">   pop_15_24ans_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2053\"> </span><span class=\"o\" position_id=\"2054\">||</span><span class=\"w\" position_id=\"2055\"> </span><span class=\"n\" position_id=\"2056\">POP1524_IRAN2_P</span><span class=\"w\" position_id=\"2057\"> </span><span class=\"o\" position_id=\"2058\">||</span><span class=\"w\" position_id=\"2059\"> </span><span class=\"s1\" position_id=\"2060\">&apos;,</span></span><span id=\"__span-14-48\" position_id=\"2061\"><a id=\"__codelineno-14-48\" name=\"__codelineno-14-48\" position_id=\"2062\"/><span class=\"s1\" position_id=\"2063\">   pop_15_24ans_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2064\"> </span><span class=\"o\" position_id=\"2065\">||</span><span class=\"w\" position_id=\"2066\"> </span><span class=\"n\" position_id=\"2067\">POP1524_IRAN3P_P</span><span class=\"w\" position_id=\"2068\"> </span><span class=\"o\" position_id=\"2069\">||</span><span class=\"w\" position_id=\"2070\"> </span><span class=\"s1\" position_id=\"2071\">&apos;,</span></span><span id=\"__span-14-49\" position_id=\"2072\"><a id=\"__codelineno-14-49\" name=\"__codelineno-14-49\" position_id=\"2073\"/><span class=\"s1\" position_id=\"2074\">   pop_25_54ans_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2075\"> </span><span class=\"o\" position_id=\"2076\">||</span><span class=\"w\" position_id=\"2077\"> </span><span class=\"n\" position_id=\"2078\">POP2554_IRAN2P_P</span><span class=\"w\" position_id=\"2079\"> </span><span class=\"o\" position_id=\"2080\">||</span><span class=\"w\" position_id=\"2081\"> </span><span class=\"s1\" position_id=\"2082\">&apos;,</span></span><span id=\"__span-14-50\" position_id=\"2083\"><a id=\"__codelineno-14-50\" name=\"__codelineno-14-50\" position_id=\"2084\"/><span class=\"s1\" position_id=\"2085\">   pop_25_54ans_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2086\"> </span><span class=\"o\" position_id=\"2087\">||</span><span class=\"w\" position_id=\"2088\"> </span><span class=\"n\" position_id=\"2089\">POP2554_IRAN2_P</span><span class=\"w\" position_id=\"2090\"> </span><span class=\"o\" position_id=\"2091\">||</span><span class=\"w\" position_id=\"2092\"> </span><span class=\"s1\" position_id=\"2093\">&apos;,</span></span><span id=\"__span-14-51\" position_id=\"2094\"><a id=\"__codelineno-14-51\" name=\"__codelineno-14-51\" position_id=\"2095\"/><span class=\"s1\" position_id=\"2096\">   pop_25_54ans_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2097\"> </span><span class=\"o\" position_id=\"2098\">||</span><span class=\"w\" position_id=\"2099\"> </span><span class=\"n\" position_id=\"2100\">POP2554_IRAN3P_P</span><span class=\"w\" position_id=\"2101\"> </span><span class=\"o\" position_id=\"2102\">||</span><span class=\"w\" position_id=\"2103\"> </span><span class=\"s1\" position_id=\"2104\">&apos;,</span></span><span id=\"__span-14-52\" position_id=\"2105\"><a id=\"__codelineno-14-52\" name=\"__codelineno-14-52\" position_id=\"2106\"/><span class=\"s1\" position_id=\"2107\">   pop_55_ou_plus_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2108\"> </span><span class=\"o\" position_id=\"2109\">||</span><span class=\"w\" position_id=\"2110\"> </span><span class=\"n\" position_id=\"2111\">POP55P_IRAN2P_P</span><span class=\"w\" position_id=\"2112\"> </span><span class=\"o\" position_id=\"2113\">||</span><span class=\"w\" position_id=\"2114\"> </span><span class=\"s1\" position_id=\"2115\">&apos;,</span></span><span id=\"__span-14-53\" position_id=\"2116\"><a id=\"__codelineno-14-53\" name=\"__codelineno-14-53\" position_id=\"2117\"/><span class=\"s1\" position_id=\"2118\">   pop_55_ou_plus_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2119\"> </span><span class=\"o\" position_id=\"2120\">||</span><span class=\"w\" position_id=\"2121\"> </span><span class=\"n\" position_id=\"2122\">POP55P_IRAN2_P</span><span class=\"w\" position_id=\"2123\"> </span><span class=\"o\" position_id=\"2124\">||</span><span class=\"w\" position_id=\"2125\"> </span><span class=\"s1\" position_id=\"2126\">&apos;,</span></span><span id=\"__span-14-54\" position_id=\"2127\"><a id=\"__codelineno-14-54\" name=\"__codelineno-14-54\" position_id=\"2128\"/><span class=\"s1\" position_id=\"2129\">   pop_55_ou_plus_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2130\"> </span><span class=\"o\" position_id=\"2131\">||</span><span class=\"w\" position_id=\"2132\"> </span><span class=\"n\" position_id=\"2133\">POP55P_IRAN3P_P</span><span class=\"w\" position_id=\"2134\"> </span><span class=\"o\" position_id=\"2135\">||</span><span class=\"w\" position_id=\"2136\"> </span><span class=\"s1\" position_id=\"2137\">&apos;,</span></span><span id=\"__span-14-55\" position_id=\"2138\"><a id=\"__codelineno-14-55\" name=\"__codelineno-14-55\" position_id=\"2139\"/><span class=\"s1\" position_id=\"2140\">   pop_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2141\"> </span><span class=\"o\" position_id=\"2142\">||</span><span class=\"w\" position_id=\"2143\"> </span><span class=\"n\" position_id=\"2144\">POP15P_C</span><span class=\"w\" position_id=\"2145\"> </span><span class=\"o\" position_id=\"2146\">||</span><span class=\"w\" position_id=\"2147\"> </span><span class=\"s1\" position_id=\"2148\">&apos;,</span></span><span id=\"__span-14-56\" position_id=\"2149\"><a id=\"__codelineno-14-56\" name=\"__codelineno-14-56\" position_id=\"2150\"/><span class=\"s1\" position_id=\"2151\">   agriculteurs_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2152\"> </span><span class=\"o\" position_id=\"2153\">||</span><span class=\"w\" position_id=\"2154\"> </span><span class=\"n\" position_id=\"2155\">POP15P_CS1_C</span><span class=\"w\" position_id=\"2156\"> </span><span class=\"o\" position_id=\"2157\">||</span><span class=\"w\" position_id=\"2158\"> </span><span class=\"s1\" position_id=\"2159\">&apos;,</span></span><span id=\"__span-14-57\" position_id=\"2160\"><a id=\"__codelineno-14-57\" name=\"__codelineno-14-57\" position_id=\"2161\"/><span class=\"s1\" position_id=\"2162\">   artisants_commercants_chefs_entreprise_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2163\"> </span><span class=\"o\" position_id=\"2164\">||</span><span class=\"w\" position_id=\"2165\"> </span><span class=\"n\" position_id=\"2166\">POP15P_CS2_C</span><span class=\"w\" position_id=\"2167\"> </span><span class=\"o\" position_id=\"2168\">||</span><span class=\"w\" position_id=\"2169\"> </span><span class=\"s1\" position_id=\"2170\">&apos;,</span></span><span id=\"__span-14-58\" position_id=\"2171\"><a id=\"__codelineno-14-58\" name=\"__codelineno-14-58\" position_id=\"2172\"/><span class=\"s1\" position_id=\"2173\">   cadres_prof_intel_sup_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2174\"> </span><span class=\"o\" position_id=\"2175\">||</span><span class=\"w\" position_id=\"2176\"> </span><span class=\"n\" position_id=\"2177\">POP15P_CS3_C</span><span class=\"w\" position_id=\"2178\"> </span><span class=\"o\" position_id=\"2179\">||</span><span class=\"w\" position_id=\"2180\"> </span><span class=\"s1\" position_id=\"2181\">&apos;,</span></span><span id=\"__span-14-59\" position_id=\"2182\"><a id=\"__codelineno-14-59\" name=\"__codelineno-14-59\" position_id=\"2183\"/><span class=\"s1\" position_id=\"2184\">   professions_intermediaires_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2185\"> </span><span class=\"o\" position_id=\"2186\">||</span><span class=\"w\" position_id=\"2187\"> </span><span class=\"n\" position_id=\"2188\">POP15P_CS4_C</span><span class=\"w\" position_id=\"2189\"> </span><span class=\"o\" position_id=\"2190\">||</span><span class=\"w\" position_id=\"2191\"> </span><span class=\"s1\" position_id=\"2192\">&apos;,</span></span><span id=\"__span-14-60\" position_id=\"2193\"><a id=\"__codelineno-14-60\" name=\"__codelineno-14-60\" position_id=\"2194\"/><span class=\"s1\" position_id=\"2195\">   employes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2196\"> </span><span class=\"o\" position_id=\"2197\">||</span><span class=\"w\" position_id=\"2198\"> </span><span class=\"n\" position_id=\"2199\">POP15P_CS5_C</span><span class=\"w\" position_id=\"2200\"> </span><span class=\"o\" position_id=\"2201\">||</span><span class=\"w\" position_id=\"2202\"> </span><span class=\"s1\" position_id=\"2203\">&apos;,</span></span><span id=\"__span-14-61\" position_id=\"2204\"><a id=\"__codelineno-14-61\" name=\"__codelineno-14-61\" position_id=\"2205\"/><span class=\"s1\" position_id=\"2206\">   ouvriers_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2207\"> </span><span class=\"o\" position_id=\"2208\">||</span><span class=\"w\" position_id=\"2209\"> </span><span class=\"n\" position_id=\"2210\">POP15P_CS6_C</span><span class=\"w\" position_id=\"2211\"> </span><span class=\"o\" position_id=\"2212\">||</span><span class=\"w\" position_id=\"2213\"> </span><span class=\"s1\" position_id=\"2214\">&apos;,</span></span><span id=\"__span-14-62\" position_id=\"2215\"><a id=\"__codelineno-14-62\" name=\"__codelineno-14-62\" position_id=\"2216\"/><span class=\"s1\" position_id=\"2217\">   retraites_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2218\"> </span><span class=\"o\" position_id=\"2219\">||</span><span class=\"w\" position_id=\"2220\"> </span><span class=\"n\" position_id=\"2221\">POP15P_CS7_C</span><span class=\"w\" position_id=\"2222\"> </span><span class=\"o\" position_id=\"2223\">||</span><span class=\"w\" position_id=\"2224\"> </span><span class=\"s1\" position_id=\"2225\">&apos;,</span></span><span id=\"__span-14-63\" position_id=\"2226\"><a id=\"__codelineno-14-63\" name=\"__codelineno-14-63\" position_id=\"2227\"/><span class=\"s1\" position_id=\"2228\">   autres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2229\"> </span><span class=\"o\" position_id=\"2230\">||</span><span class=\"w\" position_id=\"2231\"> </span><span class=\"n\" position_id=\"2232\">POP15P_CS8_C</span><span class=\"w\" position_id=\"2233\"> </span><span class=\"o\" position_id=\"2234\">||</span><span class=\"w\" position_id=\"2235\"> </span><span class=\"s1\" position_id=\"2236\">&apos;,</span></span><span id=\"__span-14-64\" position_id=\"2237\"><a id=\"__codelineno-14-64\" name=\"__codelineno-14-64\" position_id=\"2238\"/><span class=\"s1\" position_id=\"2239\">   hommes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2240\"> </span><span class=\"o\" position_id=\"2241\">||</span><span class=\"w\" position_id=\"2242\"> </span><span class=\"n\" position_id=\"2243\">H15P_C</span><span class=\"w\" position_id=\"2244\"> </span><span class=\"o\" position_id=\"2245\">||</span><span class=\"w\" position_id=\"2246\"> </span><span class=\"s1\" position_id=\"2247\">&apos;,</span></span><span id=\"__span-14-65\" position_id=\"2248\"><a id=\"__codelineno-14-65\" name=\"__codelineno-14-65\" position_id=\"2249\"/><span class=\"s1\" position_id=\"2250\">   h_agriculteurs_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2251\"> </span><span class=\"o\" position_id=\"2252\">||</span><span class=\"w\" position_id=\"2253\"> </span><span class=\"n\" position_id=\"2254\">H15P_CS1_C</span><span class=\"w\" position_id=\"2255\"> </span><span class=\"o\" position_id=\"2256\">||</span><span class=\"w\" position_id=\"2257\"> </span><span class=\"s1\" position_id=\"2258\">&apos;,</span></span><span id=\"__span-14-66\" position_id=\"2259\"><a id=\"__codelineno-14-66\" name=\"__codelineno-14-66\" position_id=\"2260\"/><span class=\"s1\" position_id=\"2261\">   h_artisants_commercants_chefs_entreprise_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2262\"> </span><span class=\"o\" position_id=\"2263\">||</span><span class=\"w\" position_id=\"2264\"> </span><span class=\"n\" position_id=\"2265\">H15P_CS2_C</span><span class=\"w\" position_id=\"2266\"> </span><span class=\"o\" position_id=\"2267\">||</span><span class=\"w\" position_id=\"2268\"> </span><span class=\"s1\" position_id=\"2269\">&apos;,</span></span><span id=\"__span-14-67\" position_id=\"2270\"><a id=\"__codelineno-14-67\" name=\"__codelineno-14-67\" position_id=\"2271\"/><span class=\"s1\" position_id=\"2272\">   h_cadres_prof_intel_sup_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2273\"> </span><span class=\"o\" position_id=\"2274\">||</span><span class=\"w\" position_id=\"2275\"> </span><span class=\"n\" position_id=\"2276\">H15P_CS3_C</span><span class=\"w\" position_id=\"2277\"> </span><span class=\"o\" position_id=\"2278\">||</span><span class=\"w\" position_id=\"2279\"> </span><span class=\"s1\" position_id=\"2280\">&apos;,</span></span><span id=\"__span-14-68\" position_id=\"2281\"><a id=\"__codelineno-14-68\" name=\"__codelineno-14-68\" position_id=\"2282\"/><span class=\"s1\" position_id=\"2283\">   h_professions_intermediaires_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2284\"> </span><span class=\"o\" position_id=\"2285\">||</span><span class=\"w\" position_id=\"2286\"> </span><span class=\"n\" position_id=\"2287\">H15P_CS4_C</span><span class=\"w\" position_id=\"2288\"> </span><span class=\"o\" position_id=\"2289\">||</span><span class=\"w\" position_id=\"2290\"> </span><span class=\"s1\" position_id=\"2291\">&apos;,</span></span><span id=\"__span-14-69\" position_id=\"2292\"><a id=\"__codelineno-14-69\" name=\"__codelineno-14-69\" position_id=\"2293\"/><span class=\"s1\" position_id=\"2294\">   h_employes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2295\"> </span><span class=\"o\" position_id=\"2296\">||</span><span class=\"w\" position_id=\"2297\"> </span><span class=\"n\" position_id=\"2298\">H15P_CS5_C</span><span class=\"w\" position_id=\"2299\"> </span><span class=\"o\" position_id=\"2300\">||</span><span class=\"w\" position_id=\"2301\"> </span><span class=\"s1\" position_id=\"2302\">&apos;,</span></span><span id=\"__span-14-70\" position_id=\"2303\"><a id=\"__codelineno-14-70\" name=\"__codelineno-14-70\" position_id=\"2304\"/><span class=\"s1\" position_id=\"2305\">   h_ouvriers_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2306\"> </span><span class=\"o\" position_id=\"2307\">||</span><span class=\"w\" position_id=\"2308\"> </span><span class=\"n\" position_id=\"2309\">H15P_CS6_C</span><span class=\"w\" position_id=\"2310\"> </span><span class=\"o\" position_id=\"2311\">||</span><span class=\"w\" position_id=\"2312\"> </span><span class=\"s1\" position_id=\"2313\">&apos;,</span></span><span id=\"__span-14-71\" position_id=\"2314\"><a id=\"__codelineno-14-71\" name=\"__codelineno-14-71\" position_id=\"2315\"/><span class=\"s1\" position_id=\"2316\">   h_retraites_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2317\"> </span><span class=\"o\" position_id=\"2318\">||</span><span class=\"w\" position_id=\"2319\"> </span><span class=\"n\" position_id=\"2320\">H15P_CS7_C</span><span class=\"w\" position_id=\"2321\"> </span><span class=\"o\" position_id=\"2322\">||</span><span class=\"w\" position_id=\"2323\"> </span><span class=\"s1\" position_id=\"2324\">&apos;,</span></span><span id=\"__span-14-72\" position_id=\"2325\"><a id=\"__codelineno-14-72\" name=\"__codelineno-14-72\" position_id=\"2326\"/><span class=\"s1\" position_id=\"2327\">   h_autres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2328\"> </span><span class=\"o\" position_id=\"2329\">||</span><span class=\"w\" position_id=\"2330\"> </span><span class=\"n\" position_id=\"2331\">H15P_CS8_C</span><span class=\"w\" position_id=\"2332\"> </span><span class=\"o\" position_id=\"2333\">||</span><span class=\"w\" position_id=\"2334\"> </span><span class=\"s1\" position_id=\"2335\">&apos;,</span></span><span id=\"__span-14-73\" position_id=\"2336\"><a id=\"__codelineno-14-73\" name=\"__codelineno-14-73\" position_id=\"2337\"/><span class=\"s1\" position_id=\"2338\">   femmes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2339\"> </span><span class=\"o\" position_id=\"2340\">||</span><span class=\"w\" position_id=\"2341\"> </span><span class=\"n\" position_id=\"2342\">F15P_C</span><span class=\"w\" position_id=\"2343\"> </span><span class=\"o\" position_id=\"2344\">||</span><span class=\"w\" position_id=\"2345\"> </span><span class=\"s1\" position_id=\"2346\">&apos;,</span></span><span id=\"__span-14-74\" position_id=\"2347\"><a id=\"__codelineno-14-74\" name=\"__codelineno-14-74\" position_id=\"2348\"/><span class=\"s1\" position_id=\"2349\">   f_agricultrices_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2350\"> </span><span class=\"o\" position_id=\"2351\">||</span><span class=\"w\" position_id=\"2352\"> </span><span class=\"n\" position_id=\"2353\">F15P_CS1_C</span><span class=\"w\" position_id=\"2354\"> </span><span class=\"o\" position_id=\"2355\">||</span><span class=\"w\" position_id=\"2356\"> </span><span class=\"s1\" position_id=\"2357\">&apos;,</span></span><span id=\"__span-14-75\" position_id=\"2358\"><a id=\"__codelineno-14-75\" name=\"__codelineno-14-75\" position_id=\"2359\"/><span class=\"s1\" position_id=\"2360\">   f_artisanes_commercantes_cheffes_entreprise_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2361\"> </span><span class=\"o\" position_id=\"2362\">||</span><span class=\"w\" position_id=\"2363\"> </span><span class=\"n\" position_id=\"2364\">F15P_CS2_C</span><span class=\"w\" position_id=\"2365\"> </span><span class=\"o\" position_id=\"2366\">||</span><span class=\"w\" position_id=\"2367\"> </span><span class=\"s1\" position_id=\"2368\">&apos;,</span></span><span id=\"__span-14-76\" position_id=\"2369\"><a id=\"__codelineno-14-76\" name=\"__codelineno-14-76\" position_id=\"2370\"/><span class=\"s1\" position_id=\"2371\">   f_cadres_prof_intel_sup_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2372\"> </span><span class=\"o\" position_id=\"2373\">||</span><span class=\"w\" position_id=\"2374\"> </span><span class=\"n\" position_id=\"2375\">F15P_CS3_C</span><span class=\"w\" position_id=\"2376\"> </span><span class=\"o\" position_id=\"2377\">||</span><span class=\"w\" position_id=\"2378\"> </span><span class=\"s1\" position_id=\"2379\">&apos;,</span></span><span id=\"__span-14-77\" position_id=\"2380\"><a id=\"__codelineno-14-77\" name=\"__codelineno-14-77\" position_id=\"2381\"/><span class=\"s1\" position_id=\"2382\">   f_professions_intermediaires_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2383\"> </span><span class=\"o\" position_id=\"2384\">||</span><span class=\"w\" position_id=\"2385\"> </span><span class=\"n\" position_id=\"2386\">F15P_CS4_C</span><span class=\"w\" position_id=\"2387\"> </span><span class=\"o\" position_id=\"2388\">||</span><span class=\"w\" position_id=\"2389\"> </span><span class=\"s1\" position_id=\"2390\">&apos;,</span></span><span id=\"__span-14-78\" position_id=\"2391\"><a id=\"__codelineno-14-78\" name=\"__codelineno-14-78\" position_id=\"2392\"/><span class=\"s1\" position_id=\"2393\">   f_employees_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2394\"> </span><span class=\"o\" position_id=\"2395\">||</span><span class=\"w\" position_id=\"2396\"> </span><span class=\"n\" position_id=\"2397\">F15P_CS5_C</span><span class=\"w\" position_id=\"2398\"> </span><span class=\"o\" position_id=\"2399\">||</span><span class=\"w\" position_id=\"2400\"> </span><span class=\"s1\" position_id=\"2401\">&apos;,</span></span><span id=\"__span-14-79\" position_id=\"2402\"><a id=\"__codelineno-14-79\" name=\"__codelineno-14-79\" position_id=\"2403\"/><span class=\"s1\" position_id=\"2404\">   f_ouvrieres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2405\"> </span><span class=\"o\" position_id=\"2406\">||</span><span class=\"w\" position_id=\"2407\"> </span><span class=\"n\" position_id=\"2408\">F15P_CS6_C</span><span class=\"w\" position_id=\"2409\"> </span><span class=\"o\" position_id=\"2410\">||</span><span class=\"w\" position_id=\"2411\"> </span><span class=\"s1\" position_id=\"2412\">&apos;,</span></span><span id=\"__span-14-80\" position_id=\"2413\"><a id=\"__codelineno-14-80\" name=\"__codelineno-14-80\" position_id=\"2414\"/><span class=\"s1\" position_id=\"2415\">   f_retraitees_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2416\"> </span><span class=\"o\" position_id=\"2417\">||</span><span class=\"w\" position_id=\"2418\"> </span><span class=\"n\" position_id=\"2419\">F15P_CS7_C</span><span class=\"w\" position_id=\"2420\"> </span><span class=\"o\" position_id=\"2421\">||</span><span class=\"w\" position_id=\"2422\"> </span><span class=\"s1\" position_id=\"2423\">&apos;,</span></span><span id=\"__span-14-81\" position_id=\"2424\"><a id=\"__codelineno-14-81\" name=\"__codelineno-14-81\" position_id=\"2425\"/><span class=\"s1\" position_id=\"2426\">   f_autres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2427\"> </span><span class=\"o\" position_id=\"2428\">||</span><span class=\"w\" position_id=\"2429\"> </span><span class=\"n\" position_id=\"2430\">F15P_CS8_C</span><span class=\"w\" position_id=\"2431\"> </span><span class=\"o\" position_id=\"2432\">||</span><span class=\"w\" position_id=\"2433\"> </span><span class=\"s1\" position_id=\"2434\">&apos;,</span></span><span id=\"__span-14-82\" position_id=\"2435\"><a id=\"__codelineno-14-82\" name=\"__codelineno-14-82\" position_id=\"2436\"/><span class=\"s1\" position_id=\"2437\">   population_15_24_ans_c,&apos;</span><span class=\"w\" position_id=\"2438\"> </span><span class=\"o\" position_id=\"2439\">||</span><span class=\"w\" position_id=\"2440\"> </span><span class=\"n\" position_id=\"2441\">POP1524_C</span><span class=\"w\" position_id=\"2442\"> </span><span class=\"o\" position_id=\"2443\">||</span><span class=\"w\" position_id=\"2444\"> </span><span class=\"s1\" position_id=\"2445\">&apos;,</span></span><span id=\"__span-14-83\" position_id=\"2446\"><a id=\"__codelineno-14-83\" name=\"__codelineno-14-83\" position_id=\"2447\"/><span class=\"s1\" position_id=\"2448\">   pop_15_24_ans_agriculteurs_c,&apos;</span><span class=\"w\" position_id=\"2449\"> </span><span class=\"o\" position_id=\"2450\">||</span><span class=\"w\" position_id=\"2451\"> </span><span class=\"n\" position_id=\"2452\">POP1524_CS1_C</span><span class=\"w\" position_id=\"2453\"> </span><span class=\"o\" position_id=\"2454\">||</span><span class=\"w\" position_id=\"2455\"> </span><span class=\"s1\" position_id=\"2456\">&apos;,</span></span><span id=\"__span-14-84\" position_id=\"2457\"><a id=\"__codelineno-14-84\" name=\"__codelineno-14-84\" position_id=\"2458\"/><span class=\"s1\" position_id=\"2459\">   pop_15_24_ans_artisants_commercants_chefs_entreprise_c,&apos;</span><span class=\"w\" position_id=\"2460\"> </span><span class=\"o\" position_id=\"2461\">||</span><span class=\"w\" position_id=\"2462\"> </span><span class=\"n\" position_id=\"2463\">POP1524_CS2_C</span><span class=\"w\" position_id=\"2464\"> </span><span class=\"o\" position_id=\"2465\">||</span><span class=\"w\" position_id=\"2466\"> </span><span class=\"s1\" position_id=\"2467\">&apos;,</span></span><span id=\"__span-14-85\" position_id=\"2468\"><a id=\"__codelineno-14-85\" name=\"__codelineno-14-85\" position_id=\"2469\"/><span class=\"s1\" position_id=\"2470\">   pop_15_24_ans_cadres_prof_intel_sup_c,&apos;</span><span class=\"w\" position_id=\"2471\"> </span><span class=\"o\" position_id=\"2472\">||</span><span class=\"w\" position_id=\"2473\"> </span><span class=\"n\" position_id=\"2474\">POP1524_CS3_C</span><span class=\"w\" position_id=\"2475\"> </span><span class=\"o\" position_id=\"2476\">||</span><span class=\"w\" position_id=\"2477\"> </span><span class=\"s1\" position_id=\"2478\">&apos;,</span></span><span id=\"__span-14-86\" position_id=\"2479\"><a id=\"__codelineno-14-86\" name=\"__codelineno-14-86\" position_id=\"2480\"/><span class=\"s1\" position_id=\"2481\">   pop_15_24_ans_professions_intermediaires_c,&apos;</span><span class=\"w\" position_id=\"2482\"> </span><span class=\"o\" position_id=\"2483\">||</span><span class=\"w\" position_id=\"2484\"> </span><span class=\"n\" position_id=\"2485\">POP1524_CS4_C</span><span class=\"w\" position_id=\"2486\"> </span><span class=\"o\" position_id=\"2487\">||</span><span class=\"w\" position_id=\"2488\"> </span><span class=\"s1\" position_id=\"2489\">&apos;,</span></span><span id=\"__span-14-87\" position_id=\"2490\"><a id=\"__codelineno-14-87\" name=\"__codelineno-14-87\" position_id=\"2491\"/><span class=\"s1\" position_id=\"2492\">   pop_15_24_ans_employes_c,&apos;</span><span class=\"w\" position_id=\"2493\"> </span><span class=\"o\" position_id=\"2494\">||</span><span class=\"w\" position_id=\"2495\"> </span><span class=\"n\" position_id=\"2496\">POP1524_CS5_C</span><span class=\"w\" position_id=\"2497\"> </span><span class=\"o\" position_id=\"2498\">||</span><span class=\"w\" position_id=\"2499\"> </span><span class=\"s1\" position_id=\"2500\">&apos;,</span></span><span id=\"__span-14-88\" position_id=\"2501\"><a id=\"__codelineno-14-88\" name=\"__codelineno-14-88\" position_id=\"2502\"/><span class=\"s1\" position_id=\"2503\">   pop_15_24_ans_ouvriers_c,&apos;</span><span class=\"w\" position_id=\"2504\"> </span><span class=\"o\" position_id=\"2505\">||</span><span class=\"w\" position_id=\"2506\"> </span><span class=\"n\" position_id=\"2507\">POP1524_CS6_C</span><span class=\"w\" position_id=\"2508\"> </span><span class=\"o\" position_id=\"2509\">||</span><span class=\"w\" position_id=\"2510\"> </span><span class=\"s1\" position_id=\"2511\">&apos;,</span></span><span id=\"__span-14-89\" position_id=\"2512\"><a id=\"__codelineno-14-89\" name=\"__codelineno-14-89\" position_id=\"2513\"/><span class=\"s1\" position_id=\"2514\">   pop_15_24_ans_retraites_c,&apos;</span><span class=\"w\" position_id=\"2515\"> </span><span class=\"o\" position_id=\"2516\">||</span><span class=\"w\" position_id=\"2517\"> </span><span class=\"n\" position_id=\"2518\">POP1524_CS7_C</span><span class=\"w\" position_id=\"2519\"> </span><span class=\"o\" position_id=\"2520\">||</span><span class=\"w\" position_id=\"2521\"> </span><span class=\"s1\" position_id=\"2522\">&apos;,</span></span><span id=\"__span-14-90\" position_id=\"2523\"><a id=\"__codelineno-14-90\" name=\"__codelineno-14-90\" position_id=\"2524\"/><span class=\"s1\" position_id=\"2525\">   pop_15_24_ans_autres_c,&apos;</span><span class=\"w\" position_id=\"2526\"> </span><span class=\"o\" position_id=\"2527\">||</span><span class=\"w\" position_id=\"2528\"> </span><span class=\"n\" position_id=\"2529\">POP1524_CS8_C</span><span class=\"w\" position_id=\"2530\"> </span><span class=\"o\" position_id=\"2531\">||</span><span class=\"w\" position_id=\"2532\"> </span><span class=\"s1\" position_id=\"2533\">&apos;,</span></span><span id=\"__span-14-91\" position_id=\"2534\"><a id=\"__codelineno-14-91\" name=\"__codelineno-14-91\" position_id=\"2535\"/><span class=\"s1\" position_id=\"2536\">   population_25_54_ans_c,&apos;</span><span class=\"w\" position_id=\"2537\"> </span><span class=\"o\" position_id=\"2538\">||</span><span class=\"w\" position_id=\"2539\"> </span><span class=\"n\" position_id=\"2540\">POP2554_C</span><span class=\"w\" position_id=\"2541\"> </span><span class=\"o\" position_id=\"2542\">||</span><span class=\"w\" position_id=\"2543\"> </span><span class=\"s1\" position_id=\"2544\">&apos;,</span></span><span id=\"__span-14-92\" position_id=\"2545\"><a id=\"__codelineno-14-92\" name=\"__codelineno-14-92\" position_id=\"2546\"/><span class=\"s1\" position_id=\"2547\">   pop_25_54_ans_agriculteurs_c,&apos;</span><span class=\"w\" position_id=\"2548\"> </span><span class=\"o\" position_id=\"2549\">||</span><span class=\"w\" position_id=\"2550\"> </span><span class=\"n\" position_id=\"2551\">POP2554_CS1_C</span><span class=\"w\" position_id=\"2552\"> </span><span class=\"o\" position_id=\"2553\">||</span><span class=\"w\" position_id=\"2554\"> </span><span class=\"s1\" position_id=\"2555\">&apos;,</span></span><span id=\"__span-14-93\" position_id=\"2556\"><a id=\"__codelineno-14-93\" name=\"__codelineno-14-93\" position_id=\"2557\"/><span class=\"s1\" position_id=\"2558\">   pop_25_54_ans_artisants_commercants_chefs_entreprise_c,&apos;</span><span class=\"w\" position_id=\"2559\"> </span><span class=\"o\" position_id=\"2560\">||</span><span class=\"w\" position_id=\"2561\"> </span><span class=\"n\" position_id=\"2562\">POP2554_CS2_C</span><span class=\"w\" position_id=\"2563\"> </span><span class=\"o\" position_id=\"2564\">||</span><span class=\"w\" position_id=\"2565\"> </span><span class=\"s1\" position_id=\"2566\">&apos;,</span></span><span id=\"__span-14-94\" position_id=\"2567\"><a id=\"__codelineno-14-94\" name=\"__codelineno-14-94\" position_id=\"2568\"/><span class=\"s1\" position_id=\"2569\">   pop_25_54_ans_cadres_prof_intel_sup_c,&apos;</span><span class=\"w\" position_id=\"2570\"> </span><span class=\"o\" position_id=\"2571\">||</span><span class=\"w\" position_id=\"2572\"> </span><span class=\"n\" position_id=\"2573\">POP2554_CS3_C</span><span class=\"w\" position_id=\"2574\"> </span><span class=\"o\" position_id=\"2575\">||</span><span class=\"w\" position_id=\"2576\"> </span><span class=\"s1\" position_id=\"2577\">&apos;,</span></span><span id=\"__span-14-95\" position_id=\"2578\"><a id=\"__codelineno-14-95\" name=\"__codelineno-14-95\" position_id=\"2579\"/><span class=\"s1\" position_id=\"2580\">   pop_25_54_ans_professions_intermediaires_c,&apos;</span><span class=\"w\" position_id=\"2581\"> </span><span class=\"o\" position_id=\"2582\">||</span><span class=\"w\" position_id=\"2583\"> </span><span class=\"n\" position_id=\"2584\">POP2554_CS4_C</span><span class=\"w\" position_id=\"2585\"> </span><span class=\"o\" position_id=\"2586\">||</span><span class=\"w\" position_id=\"2587\"> </span><span class=\"s1\" position_id=\"2588\">&apos;,</span></span><span id=\"__span-14-96\" position_id=\"2589\"><a id=\"__codelineno-14-96\" name=\"__codelineno-14-96\" position_id=\"2590\"/><span class=\"s1\" position_id=\"2591\">   pop_25_54_ans_employes_c,&apos;</span><span class=\"w\" position_id=\"2592\"> </span><span class=\"o\" position_id=\"2593\">||</span><span class=\"w\" position_id=\"2594\"> </span><span class=\"n\" position_id=\"2595\">POP2554_CS5_C</span><span class=\"w\" position_id=\"2596\"> </span><span class=\"o\" position_id=\"2597\">||</span><span class=\"w\" position_id=\"2598\"> </span><span class=\"s1\" position_id=\"2599\">&apos;,</span></span><span id=\"__span-14-97\" position_id=\"2600\"><a id=\"__codelineno-14-97\" name=\"__codelineno-14-97\" position_id=\"2601\"/><span class=\"s1\" position_id=\"2602\">   pop_25_54_ans_ouvriers_c,&apos;</span><span class=\"w\" position_id=\"2603\"> </span><span class=\"o\" position_id=\"2604\">||</span><span class=\"w\" position_id=\"2605\"> </span><span class=\"n\" position_id=\"2606\">POP2554_CS6_C</span><span class=\"w\" position_id=\"2607\"> </span><span class=\"o\" position_id=\"2608\">||</span><span class=\"w\" position_id=\"2609\"> </span><span class=\"s1\" position_id=\"2610\">&apos;,</span></span><span id=\"__span-14-98\" position_id=\"2611\"><a id=\"__codelineno-14-98\" name=\"__codelineno-14-98\" position_id=\"2612\"/><span class=\"s1\" position_id=\"2613\">   pop_25_54_ans_retraites_c,&apos;</span><span class=\"w\" position_id=\"2614\"> </span><span class=\"o\" position_id=\"2615\">||</span><span class=\"w\" position_id=\"2616\"> </span><span class=\"n\" position_id=\"2617\">POP2554_CS7_C</span><span class=\"w\" position_id=\"2618\"> </span><span class=\"o\" position_id=\"2619\">||</span><span class=\"w\" position_id=\"2620\"> </span><span class=\"s1\" position_id=\"2621\">&apos;,</span></span><span id=\"__span-14-99\" position_id=\"2622\"><a id=\"__codelineno-14-99\" name=\"__codelineno-14-99\" position_id=\"2623\"/><span class=\"s1\" position_id=\"2624\">   pop_25_54_ans_autres_c,&apos;</span><span class=\"w\" position_id=\"2625\"> </span><span class=\"o\" position_id=\"2626\">||</span><span class=\"w\" position_id=\"2627\"> </span><span class=\"n\" position_id=\"2628\">POP554_CS8_C</span><span class=\"w\" position_id=\"2629\"> </span><span class=\"o\" position_id=\"2630\">||</span><span class=\"w\" position_id=\"2631\"> </span><span class=\"s1\" position_id=\"2632\">&apos;,</span></span><span id=\"__span-14-100\" position_id=\"2633\"><a id=\"__codelineno-14-100\" name=\"__codelineno-14-100\" position_id=\"2634\"/><span class=\"s1\" position_id=\"2635\">   population_55_ans_et_plus_c,&apos;</span><span class=\"w\" position_id=\"2636\"> </span><span class=\"o\" position_id=\"2637\">||</span><span class=\"w\" position_id=\"2638\"> </span><span class=\"n\" position_id=\"2639\">POP55P_C</span><span class=\"w\" position_id=\"2640\"> </span><span class=\"o\" position_id=\"2641\">||</span><span class=\"w\" position_id=\"2642\"> </span><span class=\"s1\" position_id=\"2643\">&apos;,</span></span><span id=\"__span-14-101\" position_id=\"2644\"><a id=\"__codelineno-14-101\" name=\"__codelineno-14-101\" position_id=\"2645\"/><span class=\"s1\" position_id=\"2646\">   pop_55_ans_et_plus_ans_agriculteurs_c,&apos;</span><span class=\"w\" position_id=\"2647\"> </span><span class=\"o\" position_id=\"2648\">||</span><span class=\"w\" position_id=\"2649\"> </span><span class=\"n\" position_id=\"2650\">POP55P_CS1_C</span><span class=\"w\" position_id=\"2651\"> </span><span class=\"o\" position_id=\"2652\">||</span><span class=\"w\" position_id=\"2653\"> </span><span class=\"s1\" position_id=\"2654\">&apos;,</span></span><span id=\"__span-14-102\" position_id=\"2655\"><a id=\"__codelineno-14-102\" name=\"__codelineno-14-102\" position_id=\"2656\"/><span class=\"s1\" position_id=\"2657\">   pop_55_ans_et_plus_ans_artisants_commercants_chefs_entreprise_c,&apos;</span><span class=\"w\" position_id=\"2658\"> </span><span class=\"o\" position_id=\"2659\">||</span><span class=\"w\" position_id=\"2660\"> </span><span class=\"n\" position_id=\"2661\">POP55P_CS2_C</span><span class=\"w\" position_id=\"2662\"> </span><span class=\"o\" position_id=\"2663\">||</span><span class=\"w\" position_id=\"2664\"> </span><span class=\"s1\" position_id=\"2665\">&apos;,</span></span><span id=\"__span-14-103\" position_id=\"2666\"><a id=\"__codelineno-14-103\" name=\"__codelineno-14-103\" position_id=\"2667\"/><span class=\"s1\" position_id=\"2668\">   pop_55_ans_et_plus_ans_cadres_prof_intel_sup_c,&apos;</span><span class=\"w\" position_id=\"2669\"> </span><span class=\"o\" position_id=\"2670\">||</span><span class=\"w\" position_id=\"2671\"> </span><span class=\"n\" position_id=\"2672\">POP55P_CS3_C</span><span class=\"w\" position_id=\"2673\"> </span><span class=\"o\" position_id=\"2674\">||</span><span class=\"w\" position_id=\"2675\"> </span><span class=\"s1\" position_id=\"2676\">&apos;,</span></span><span id=\"__span-14-104\" position_id=\"2677\"><a id=\"__codelineno-14-104\" name=\"__codelineno-14-104\" position_id=\"2678\"/><span class=\"s1\" position_id=\"2679\">   pop_55_ans_et_plus_ans_professions_intermediaires_c,&apos;</span><span class=\"w\" position_id=\"2680\"> </span><span class=\"o\" position_id=\"2681\">||</span><span class=\"w\" position_id=\"2682\"> </span><span class=\"n\" position_id=\"2683\">POP55P_CS4_C</span><span class=\"w\" position_id=\"2684\"> </span><span class=\"o\" position_id=\"2685\">||</span><span class=\"w\" position_id=\"2686\"> </span><span class=\"s1\" position_id=\"2687\">&apos;,</span></span><span id=\"__span-14-105\" position_id=\"2688\"><a id=\"__codelineno-14-105\" name=\"__codelineno-14-105\" position_id=\"2689\"/><span class=\"s1\" position_id=\"2690\">   pop_55_ans_et_plus_ans_employes_c,&apos;</span><span class=\"w\" position_id=\"2691\"> </span><span class=\"o\" position_id=\"2692\">||</span><span class=\"w\" position_id=\"2693\"> </span><span class=\"n\" position_id=\"2694\">POP55P_CS5_C</span><span class=\"w\" position_id=\"2695\"> </span><span class=\"o\" position_id=\"2696\">||</span><span class=\"w\" position_id=\"2697\"> </span><span class=\"s1\" position_id=\"2698\">&apos;,</span></span><span id=\"__span-14-106\" position_id=\"2699\"><a id=\"__codelineno-14-106\" name=\"__codelineno-14-106\" position_id=\"2700\"/><span class=\"s1\" position_id=\"2701\">   pop_55_ans_et_plus_ans_ouvriers_c,&apos;</span><span class=\"w\" position_id=\"2702\"> </span><span class=\"o\" position_id=\"2703\">||</span><span class=\"w\" position_id=\"2704\"> </span><span class=\"n\" position_id=\"2705\">POP55P_CS6_C</span><span class=\"w\" position_id=\"2706\"> </span><span class=\"o\" position_id=\"2707\">||</span><span class=\"w\" position_id=\"2708\"> </span><span class=\"s1\" position_id=\"2709\">&apos;,</span></span><span id=\"__span-14-107\" position_id=\"2710\"><a id=\"__codelineno-14-107\" name=\"__codelineno-14-107\" position_id=\"2711\"/><span class=\"s1\" position_id=\"2712\">   pop_55_ans_et_plus_ans_retraites_c,&apos;</span><span class=\"w\" position_id=\"2713\"> </span><span class=\"o\" position_id=\"2714\">||</span><span class=\"w\" position_id=\"2715\"> </span><span class=\"n\" position_id=\"2716\">POP55P_CS7_C</span><span class=\"w\" position_id=\"2717\"> </span><span class=\"o\" position_id=\"2718\">||</span><span class=\"w\" position_id=\"2719\"> </span><span class=\"s1\" position_id=\"2720\">&apos;,</span></span><span id=\"__span-14-108\" position_id=\"2721\"><a id=\"__codelineno-14-108\" name=\"__codelineno-14-108\" position_id=\"2722\"/><span class=\"s1\" position_id=\"2723\">   pop_55_ans_et_plus_ans_autres_c,&apos;</span><span class=\"w\" position_id=\"2724\"> </span><span class=\"o\" position_id=\"2725\">||</span><span class=\"w\" position_id=\"2726\"> </span><span class=\"n\" position_id=\"2727\">POP55P_CS8_C</span><span class=\"p\" position_id=\"2728\">,</span></span><span id=\"__span-14-109\" position_id=\"2729\"><a id=\"__codelineno-14-109\" name=\"__codelineno-14-109\" position_id=\"2730\"/><span class=\"w\" position_id=\"2731\">  </span><span class=\"n\" position_id=\"2732\">E</span><span class=\"s1\" position_id=\"2733\">&apos;[\\t\\n\\r]&apos;</span><span class=\"p\" position_id=\"2734\">,</span><span class=\"s1\" position_id=\"2735\">&apos;&apos;</span><span class=\"p\" position_id=\"2736\">,</span><span class=\"s1\" position_id=\"2737\">&apos;g&apos;</span><span class=\"p\" position_id=\"2738\">)</span><span class=\"w\" position_id=\"2739\"> </span><span class=\"k\" position_id=\"2740\">AS</span><span class=\"w\" position_id=\"2741\"> </span><span class=\"k\" position_id=\"2742\">data</span></span><span id=\"__span-14-110\" position_id=\"2743\"><a id=\"__codelineno-14-110\" name=\"__codelineno-14-110\" position_id=\"2744\"/><span class=\"w\" position_id=\"2745\">  </span><span class=\"k\" position_id=\"2746\">FROM</span><span class=\"w\" position_id=\"2747\"> </span><span class=\"n\" position_id=\"2748\">insee</span><span class=\"p\" position_id=\"2749\">.</span><span class=\"n\" position_id=\"2750\">rp_population_import</span></span><span id=\"__span-14-111\" position_id=\"2751\"><a id=\"__codelineno-14-111\" name=\"__codelineno-14-111\" position_id=\"2752\"/><span class=\"w\" position_id=\"2753\"> </span><span class=\"p\" position_id=\"2754\">)</span></span><span id=\"__span-14-112\" position_id=\"2755\"><a id=\"__codelineno-14-112\" name=\"__codelineno-14-112\" position_id=\"2756\"/></span><span id=\"__span-14-113\" position_id=\"2757\"><a id=\"__codelineno-14-113\" name=\"__codelineno-14-113\" position_id=\"2758\"/><span class=\"c1\" position_id=\"2759\">-- Conversion of text strings to json and insertion into the table.</span></span><span id=\"__span-14-114\" position_id=\"2760\"><a id=\"__codelineno-14-114\" name=\"__codelineno-14-114\" position_id=\"2761\"/><span class=\"k\" position_id=\"2762\">INSERT</span><span class=\"w\" position_id=\"2763\"> </span><span class=\"k\" position_id=\"2764\">INTO</span><span class=\"w\" position_id=\"2765\"> </span><span class=\"n\" position_id=\"2766\">insee</span><span class=\"p\" position_id=\"2767\">.</span><span class=\"n\" position_id=\"2768\">donnees_communes</span><span class=\"p\" position_id=\"2769\">(</span><span class=\"ss\" position_id=\"2770\">&quot;code_commune&quot;</span><span class=\"p\" position_id=\"2771\">,</span><span class=\"ss\" position_id=\"2772\">&quot;annee&quot;</span><span class=\"p\" position_id=\"2773\">,</span><span class=\"ss\" position_id=\"2774\">&quot;fk_base&quot;</span><span class=\"p\" position_id=\"2775\">,</span><span class=\"ss\" position_id=\"2776\">&quot;donnees&quot;</span><span class=\"p\" position_id=\"2777\">)</span></span><span id=\"__span-14-115\" position_id=\"2778\"><a id=\"__codelineno-14-115\" name=\"__codelineno-14-115\" position_id=\"2779\"/><span class=\"k\" position_id=\"2780\">SELECT</span></span><span id=\"__span-14-116\" position_id=\"2781\"><a id=\"__codelineno-14-116\" name=\"__codelineno-14-116\" position_id=\"2782\"/><span class=\"w\" position_id=\"2783\">    </span><span class=\"n\" position_id=\"2784\">CODGEO</span><span class=\"p\" position_id=\"2785\">,</span></span><span id=\"__span-14-117\" position_id=\"2786\"><a id=\"__codelineno-14-117\" name=\"__codelineno-14-117\" position_id=\"2787\"/><span class=\"w\" position_id=\"2788\">    </span><span class=\"mi\" position_id=\"2789\">2021</span><span class=\"p\" position_id=\"2790\">,</span></span><span id=\"__span-14-118\" position_id=\"2791\"><a id=\"__codelineno-14-118\" name=\"__codelineno-14-118\" position_id=\"2792\"/><span class=\"w\" position_id=\"2793\">    </span><span class=\"mi\" position_id=\"2794\">1</span><span class=\"p\" position_id=\"2795\">,</span></span><span id=\"__span-14-119\" position_id=\"2796\"><a id=\"__codelineno-14-119\" name=\"__codelineno-14-119\" position_id=\"2797\"/><span class=\"w\" position_id=\"2798\">    </span><span class=\"n\" position_id=\"2799\">jsonb_object</span><span class=\"p\" position_id=\"2800\">(</span><span class=\"n\" position_id=\"2801\">string_to_array</span><span class=\"p\" position_id=\"2802\">(</span><span class=\"k\" position_id=\"2803\">data</span><span class=\"p\" position_id=\"2804\">::</span><span class=\"nb\" position_id=\"2805\">text</span><span class=\"p\" position_id=\"2806\">,</span><span class=\"s1\" position_id=\"2807\">&apos;,&apos;</span><span class=\"p\" position_id=\"2808\">))</span></span><span id=\"__span-14-120\" position_id=\"2809\"><a id=\"__codelineno-14-120\" name=\"__codelineno-14-120\" position_id=\"2810\"/><span class=\"k\" position_id=\"2811\">FROM</span><span class=\"w\" position_id=\"2812\"> </span><span class=\"n\" position_id=\"2813\">d</span></span><span id=\"__span-14-121\" position_id=\"2814\"><a id=\"__codelineno-14-121\" name=\"__codelineno-14-121\" position_id=\"2815\"/><span class=\"k\" position_id=\"2816\">ORDER</span><span class=\"w\" position_id=\"2817\"> </span><span class=\"k\" position_id=\"2818\">BY</span><span class=\"w\" position_id=\"2819\"> </span><span class=\"ss\" position_id=\"2820\">&quot;CODGEO&quot;</span><span class=\"p\" position_id=\"2821\">;</span></span></code></pre></div></td></tr></tbody></table>", "language": "english", "position": {"atoms": [{"position_id": 1307, "txt": "<table <table class=\"highlighttable\" position_id=\"1307\"><tbody position_id=\"1308\"><tr position_id=\"1309\"><th class=\"filename\" colspan=\"2\" position_id=\"1310\"><span class=\"filename\" position_id=\"1311\">The weirdest INSERT of your life (with a CTE)</span></th></tr><tr position_id=\"1312\"><td class=\"linenos\" position_id=\"1313\"><div class=\"linenodiv\" position_id=\"1314\"/></td><td class=\"code\" position_id=\"1559\"><div position_id=\"1560\"><pre id=\"__code_14\" position_id=\"1561\"><span position_id=\"1562\"/><code class=\"md-code__content\" tabindex=\"0\" position_id=\"1563\"><span id=\"__span-14-1\" position_id=\"1564\"><a id=\"__codelineno-14-1\" name=\"__codelineno-14-1\" position_id=\"1565\"/><span class=\"c1\" position_id=\"1566\">-- cte cte concatenating data with keys and cleaning up special characters.</span>\n</span><span id=\"__span-14-2\" position_id=\"1567\"><a id=\"__codelineno-14-2\" name=\"__codelineno-14-2\" position_id=\"1568\"/><span class=\"k\" position_id=\"1569\">WITH</span><span class=\"w\" position_id=\"1570\"> </span><span class=\"n\" position_id=\"1571\">d</span><span class=\"w\" position_id=\"1572\"> </span><span class=\"k\" position_id=\"1573\">AS</span><span class=\"w\" position_id=\"1574\"> </span><span class=\"p\" position_id=\"1575\">(</span>\n</span><span id=\"__span-14-3\" position_id=\"1576\"><a id=\"__codelineno-14-3\" name=\"__codelineno-14-3\" position_id=\"1577\"/><span class=\"w\" position_id=\"1578\">  </span><span class=\"k\" position_id=\"1579\">SELECT</span>\n</span><span id=\"__span-14-4\" position_id=\"1580\"><a id=\"__codelineno-14-4\" name=\"__codelineno-14-4\" position_id=\"1581\"/><span class=\"w\" position_id=\"1582\"> </span><span class=\"n\" position_id=\"1583\">CODGEO</span><span class=\"p\" position_id=\"1584\">,</span>\n</span><span id=\"__span-14-5\" position_id=\"1585\"><a id=\"__codelineno-14-5\" name=\"__codelineno-14-5\" position_id=\"1586\"/><span class=\"w\" position_id=\"1587\"> </span><span class=\"n\" position_id=\"1588\">regexp_replace</span><span class=\"p\" position_id=\"1589\">(</span><span class=\"s1\" position_id=\"1590\">&apos;pop_p,&apos;</span><span class=\"w\" position_id=\"1591\"> </span><span class=\"o\" position_id=\"1592\">||</span><span class=\"w\" position_id=\"1593\"> </span><span class=\"n\" position_id=\"1594\">POP_P</span><span class=\"w\" position_id=\"1595\"> </span><span class=\"o\" position_id=\"1596\">||</span><span class=\"w\" position_id=\"1597\"> </span><span class=\"s1\" position_id=\"1598\">&apos;,</span>\n</span><span id=\"__span-14-6\" position_id=\"1599\"><a id=\"__codelineno-14-6\" name=\"__codelineno-14-6\" position_id=\"1600\"/><span class=\"s1\" position_id=\"1601\">   pop_0_14_ans_p,&apos;</span><span class=\"w\" position_id=\"1602\"> </span><span class=\"o\" position_id=\"1603\">||</span><span class=\"w\" position_id=\"1604\"> </span><span class=\"n\" position_id=\"1605\">POP0014_P</span><span class=\"w\" position_id=\"1606\"> </span><span class=\"o\" position_id=\"1607\">||</span><span class=\"w\" position_id=\"1608\"> </span><span class=\"s1\" position_id=\"1609\">&apos;,</span>\n</span><span id=\"__span-14-7\" position_id=\"1610\"><a id=\"__codelineno-14-7\" name=\"__codelineno-14-7\" position_id=\"1611\"/><span class=\"s1\" position_id=\"1612\">   pop_15_29_ans_p,&apos;</span><span class=\"w\" position_id=\"1613\"> </span><span class=\"o\" position_id=\"1614\">||</span><span class=\"w\" position_id=\"1615\"> </span><span class=\"n\" position_id=\"1616\">POP1529_P</span><span class=\"w\" position_id=\"1617\"> </span><span class=\"o\" position_id=\"1618\">||</span><span class=\"w\" position_id=\"1619\"> </span><span class=\"s1\" position_id=\"1620\">&apos;,</span>\n</span><span id=\"__span-14-8\" position_id=\"1621\"><a id=\"__codelineno-14-8\" name=\"__codelineno-14-8\" position_id=\"1622\"/><span class=\"s1\" position_id=\"1623\">   pop_30_44_ans_p,&apos;</span><span class=\"w\" position_id=\"1624\"> </span><span class=\"o\" position_id=\"1625\">||</span><span class=\"w\" position_id=\"1626\"> </span><span class=\"n\" position_id=\"1627\">POP3044_P</span><span class=\"w\" position_id=\"1628\"> </span><span class=\"o\" position_id=\"1629\">||</span><span class=\"w\" position_id=\"1630\"> </span><span class=\"s1\" position_id=\"1631\">&apos;,</span>\n</span><span id=\"__span-14-9\" position_id=\"1632\"><a id=\"__codelineno-14-9\" name=\"__codelineno-14-9\" position_id=\"1633\"/><span class=\"s1\" position_id=\"1634\">   pop_45_59_ans_p,&apos;</span><span class=\"w\" position_id=\"1635\"> </span><span class=\"o\" position_id=\"1636\">||</span><span class=\"w\" position_id=\"1637\"> </span><span class=\"n\" position_id=\"1638\">POP4559_P</span><span class=\"w\" position_id=\"1639\"> </span><span class=\"o\" position_id=\"1640\">||</span><span class=\"w\" position_id=\"1641\"> </span><span class=\"s1\" position_id=\"1642\">&apos;,</span>\n</span><span id=\"__span-14-10\" position_id=\"1643\"><a id=\"__codelineno-14-10\" name=\"__codelineno-14-10\" position_id=\"1644\"/><span class=\"s1\" position_id=\"1645\">   pop_60_74_ans_p,&apos;</span><span class=\"w\" position_id=\"1646\"> </span><span class=\"o\" position_id=\"1647\">||</span><span class=\"w\" position_id=\"1648\"> </span><span class=\"n\" position_id=\"1649\">POP6074_P</span><span class=\"w\" position_id=\"1650\"> </span><span class=\"o\" position_id=\"1651\">||</span><span class=\"w\" position_id=\"1652\"> </span><span class=\"s1\" position_id=\"1653\">&apos;,</span>\n</span><span id=\"__span-14-11\" position_id=\"1654\"><a id=\"__codelineno-14-11\" name=\"__codelineno-14-11\" position_id=\"1655\"/><span class=\"s1\" position_id=\"1656\">   pop_75_89_ans_p,&apos;</span><span class=\"w\" position_id=\"1657\"> </span><span class=\"o\" position_id=\"1658\">||</span><span class=\"w\" position_id=\"1659\"> </span><span class=\"n\" position_id=\"1660\">POP7589_P</span><span class=\"w\" position_id=\"1661\"> </span><span class=\"o\" position_id=\"1662\">||</span><span class=\"w\" position_id=\"1663\"> </span><span class=\"s1\" position_id=\"1664\">&apos;,</span>\n</span><span id=\"__span-14-12\" position_id=\"1665\"><a id=\"__codelineno-14-12\" name=\"__codelineno-14-12\" position_id=\"1666\"/><span class=\"s1\" position_id=\"1667\">   pop_90_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1668\"> </span><span class=\"o\" position_id=\"1669\">||</span><span class=\"w\" position_id=\"1670\"> </span><span class=\"n\" position_id=\"1671\">POP90P_P</span><span class=\"w\" position_id=\"1672\"> </span><span class=\"o\" position_id=\"1673\">||</span><span class=\"w\" position_id=\"1674\"> </span><span class=\"s1\" position_id=\"1675\">&apos;,</span>\n</span><span id=\"__span-14-13\" position_id=\"1676\"><a id=\"__codelineno-14-13\" name=\"__codelineno-14-13\" position_id=\"1677\"/><span class=\"s1\" position_id=\"1678\">   hommes_p,&apos;</span><span class=\"w\" position_id=\"1679\"> </span><span class=\"o\" position_id=\"1680\">||</span><span class=\"w\" position_id=\"1681\"> </span><span class=\"n\" position_id=\"1682\">POPH_P</span><span class=\"w\" position_id=\"1683\"> </span><span class=\"o\" position_id=\"1684\">||</span><span class=\"w\" position_id=\"1685\"> </span><span class=\"s1\" position_id=\"1686\">&apos;,</span>\n</span><span id=\"__span-14-14\" position_id=\"1687\"><a id=\"__codelineno-14-14\" name=\"__codelineno-14-14\" position_id=\"1688\"/><span class=\"s1\" position_id=\"1689\">   hommes_0_14_ans_p,&apos;</span><span class=\"w\" position_id=\"1690\"> </span><span class=\"o\" position_id=\"1691\">||</span><span class=\"w\" position_id=\"1692\"> </span><span class=\"n\" position_id=\"1693\">H0014_P</span><span class=\"w\" position_id=\"1694\"> </span><span class=\"o\" position_id=\"1695\">||</span><span class=\"w\" position_id=\"1696\"> </span><span class=\"s1\" position_id=\"1697\">&apos;,</span>\n</span><span id=\"__span-14-15\" position_id=\"1698\"><a id=\"__codelineno-14-15\" name=\"__codelineno-14-15\" position_id=\"1699\"/><span class=\"s1\" position_id=\"1700\">   hommes_15_29_ans_p,&apos;</span><span class=\"w\" position_id=\"1701\"> </span><span class=\"o\" position_id=\"1702\">||</span><span class=\"w\" position_id=\"1703\"> </span><span class=\"n\" position_id=\"1704\">H1529_P</span><span class=\"w\" position_id=\"1705\"> </span><span class=\"o\" position_id=\"1706\">||</span><span class=\"w\" position_id=\"1707\"> </span><span class=\"s1\" position_id=\"1708\">&apos;,</span>\n</span><span id=\"__span-14-16\" position_id=\"1709\"><a id=\"__codelineno-14-16\" name=\"__codelineno-14-16\" position_id=\"1710\"/><span class=\"s1\" position_id=\"1711\">   hommes_30_44_ans_p,&apos;</span><span class=\"w\" position_id=\"1712\"> </span><span class=\"o\" position_id=\"1713\">||</span><span class=\"w\" position_id=\"1714\"> </span><span class=\"n\" position_id=\"1715\">H3044_P</span><span class=\"w\" position_id=\"1716\"> </span><span class=\"o\" position_id=\"1717\">||</span><span class=\"w\" position_id=\"1718\"> </span><span class=\"s1\" position_id=\"1719\">&apos;,</span>\n</span><span id=\"__span-14-17\" position_id=\"1720\"><a id=\"__codelineno-14-17\" name=\"__codelineno-14-17\" position_id=\"1721\"/><span class=\"s1\" position_id=\"1722\">   hommes_45_59_ans_p,&apos;</span><span class=\"w\" position_id=\"1723\"> </span><span class=\"o\" position_id=\"1724\">||</span><span class=\"w\" position_id=\"1725\"> </span><span class=\"n\" position_id=\"1726\">H4559_P</span><span class=\"w\" position_id=\"1727\"> </span><span class=\"o\" position_id=\"1728\">||</span><span class=\"w\" position_id=\"1729\"> </span><span class=\"s1\" position_id=\"1730\">&apos;,</span>\n</span><span id=\"__span-14-18\" position_id=\"1731\"><a id=\"__codelineno-14-18\" name=\"__codelineno-14-18\" position_id=\"1732\"/><span class=\"s1\" position_id=\"1733\">   hommes_60_74_ans_p,&apos;</span><span class=\"w\" position_id=\"1734\"> </span><span class=\"o\" position_id=\"1735\">||</span><span class=\"w\" position_id=\"1736\"> </span><span class=\"n\" position_id=\"1737\">H6074_P</span><span class=\"w\" position_id=\"1738\"> </span><span class=\"o\" position_id=\"1739\">||</span><span class=\"w\" position_id=\"1740\"> </span><span class=\"s1\" position_id=\"1741\">&apos;,</span>\n</span><span id=\"__span-14-19\" position_id=\"1742\"><a id=\"__codelineno-14-19\" name=\"__codelineno-14-19\" position_id=\"1743\"/><span class=\"s1\" position_id=\"1744\">   hommes_75_89_ans_p,&apos;</span><span class=\"w\" position_id=\"1745\"> </span><span class=\"o\" position_id=\"1746\">||</span><span class=\"w\" position_id=\"1747\"> </span><span class=\"n\" position_id=\"1748\">H7589_P</span><span class=\"w\" position_id=\"1749\"> </span><span class=\"o\" position_id=\"1750\">||</span><span class=\"w\" position_id=\"1751\"> </span><span class=\"s1\" position_id=\"1752\">&apos;,</span>\n</span><span id=\"__span-14-20\" position_id=\"1753\"><a id=\"__codelineno-14-20\" name=\"__codelineno-14-20\" position_id=\"1754\"/><span class=\"s1\" position_id=\"1755\">   hommes_90_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1756\"> </span><span class=\"o\" position_id=\"1757\">||</span><span class=\"w\" position_id=\"1758\"> </span><span class=\"n\" position_id=\"1759\">H90P_P</span><span class=\"w\" position_id=\"1760\"> </span><span class=\"o\" position_id=\"1761\">||</span><span class=\"w\" position_id=\"1762\"> </span><span class=\"s1\" position_id=\"1763\">&apos;,</span>\n</span><span id=\"__span-14-21\" position_id=\"1764\"><a id=\"__codelineno-14-21\" name=\"__codelineno-14-21\" position_id=\"1765\"/><span class=\"s1\" position_id=\"1766\">   hommes_0_19_ans_p,&apos;</span><span class=\"w\" position_id=\"1767\"> </span><span class=\"o\" position_id=\"1768\">||</span><span class=\"w\" position_id=\"1769\"> </span><span class=\"n\" position_id=\"1770\">H0019_P</span><span class=\"w\" position_id=\"1771\"> </span><span class=\"o\" position_id=\"1772\">||</span><span class=\"w\" position_id=\"1773\"> </span><span class=\"s1\" position_id=\"1774\">&apos;,</span>\n</span><span id=\"__span-14-22\" position_id=\"1775\"><a id=\"__codelineno-14-22\" name=\"__codelineno-14-22\" position_id=\"1776\"/><span class=\"s1\" position_id=\"1777\">   hommes_20_64_ans_p,&apos;</span><span class=\"w\" position_id=\"1778\"> </span><span class=\"o\" position_id=\"1779\">||</span><span class=\"w\" position_id=\"1780\"> </span><span class=\"n\" position_id=\"1781\">H2064_P</span><span class=\"w\" position_id=\"1782\"> </span><span class=\"o\" position_id=\"1783\">||</span><span class=\"w\" position_id=\"1784\"> </span><span class=\"s1\" position_id=\"1785\">&apos;,</span>\n</span><span id=\"__span-14-23\" position_id=\"1786\"><a id=\"__codelineno-14-23\" name=\"__codelineno-14-23\" position_id=\"1787\"/><span class=\"s1\" position_id=\"1788\">   hommes_65_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1789\"> </span><span class=\"o\" position_id=\"1790\">||</span><span class=\"w\" position_id=\"1791\"> </span><span class=\"n\" position_id=\"1792\">H65P_P</span><span class=\"w\" position_id=\"1793\"> </span><span class=\"o\" position_id=\"1794\">||</span><span class=\"w\" position_id=\"1795\"> </span><span class=\"s1\" position_id=\"1796\">&apos;,</span>\n</span><span id=\"__span-14-24\" position_id=\"1797\"><a id=\"__codelineno-14-24\" name=\"__codelineno-14-24\" position_id=\"1798\"/><span class=\"s1\" position_id=\"1799\">   femmes_p,&apos;</span><span class=\"w\" position_id=\"1800\"> </span><span class=\"o\" position_id=\"1801\">||</span><span class=\"w\" position_id=\"1802\"> </span><span class=\"n\" position_id=\"1803\">POPF_P</span><span class=\"w\" position_id=\"1804\"> </span><span class=\"o\" position_id=\"1805\">||</span><span class=\"w\" position_id=\"1806\"> </span><span class=\"s1\" position_id=\"1807\">&apos;,</span>\n</span><span id=\"__span-14-25\" position_id=\"1808\"><a id=\"__codelineno-14-25\" name=\"__codelineno-14-25\" position_id=\"1809\"/><span class=\"s1\" position_id=\"1810\">   femmes_0_14_ans_p,&apos;</span><span class=\"w\" position_id=\"1811\"> </span><span class=\"o\" position_id=\"1812\">||</span><span class=\"w\" position_id=\"1813\"> </span><span class=\"n\" position_id=\"1814\">F0014_P</span><span class=\"w\" position_id=\"1815\"> </span><span class=\"o\" position_id=\"1816\">||</span><span class=\"w\" position_id=\"1817\"> </span><span class=\"s1\" position_id=\"1818\">&apos;,</span>\n</span><span id=\"__span-14-26\" position_id=\"1819\"><a id=\"__codelineno-14-26\" name=\"__codelineno-14-26\" position_id=\"1820\"/><span class=\"s1\" position_id=\"1821\">   femmes_15_29_ans_p,&apos;</span><span class=\"w\" position_id=\"1822\"> </span><span class=\"o\" position_id=\"1823\">||</span><span class=\"w\" position_id=\"1824\"> </span><span class=\"n\" position_id=\"1825\">F1529_P</span><span class=\"w\" position_id=\"1826\"> </span><span class=\"o\" position_id=\"1827\">||</span><span class=\"w\" position_id=\"1828\"> </span><span class=\"s1\" position_id=\"1829\">&apos;,</span>\n</span><span id=\"__span-14-27\" position_id=\"1830\"><a id=\"__codelineno-14-27\" name=\"__codelineno-14-27\" position_id=\"1831\"/><span class=\"s1\" position_id=\"1832\">   femmes_30_44_ans_p,&apos;</span><span class=\"w\" position_id=\"1833\"> </span><span class=\"o\" position_id=\"1834\">||</span><span class=\"w\" position_id=\"1835\"> </span><span class=\"n\" position_id=\"1836\">F3044_P</span><span class=\"w\" position_id=\"1837\"> </span><span class=\"o\" position_id=\"1838\">||</span><span class=\"w\" position_id=\"1839\"> </span><span class=\"s1\" position_id=\"1840\">&apos;,</span>\n</span><span id=\"__span-14-28\" position_id=\"1841\"><a id=\"__codelineno-14-28\" name=\"__codelineno-14-28\" position_id=\"1842\"/><span class=\"s1\" position_id=\"1843\">   femmes_45_59_ans_p,&apos;</span><span class=\"w\" position_id=\"1844\"> </span><span class=\"o\" position_id=\"1845\">||</span><span class=\"w\" position_id=\"1846\"> </span><span class=\"n\" position_id=\"1847\">F4559_P</span><span class=\"w\" position_id=\"1848\"> </span><span class=\"o\" position_id=\"1849\">||</span><span class=\"w\" position_id=\"1850\"> </span><span class=\"s1\" position_id=\"1851\">&apos;,</span>\n</span><span id=\"__span-14-29\" position_id=\"1852\"><a id=\"__codelineno-14-29\" name=\"__codelineno-14-29\" position_id=\"1853\"/><span class=\"s1\" position_id=\"1854\">   femmes_60_74_ans_p,&apos;</span><span class=\"w\" position_id=\"1855\"> </span><span class=\"o\" position_id=\"1856\">||</span><span class=\"w\" position_id=\"1857\"> </span><span class=\"n\" position_id=\"1858\">F6074_P</span><span class=\"w\" position_id=\"1859\"> </span><span class=\"o\" position_id=\"1860\">||</span><span class=\"w\" position_id=\"1861\"> </span><span class=\"s1\" position_id=\"1862\">&apos;,</span>\n</span><span id=\"__span-14-30\" position_id=\"1863\"><a id=\"__codelineno-14-30\" name=\"__codelineno-14-30\" position_id=\"1864\"/><span class=\"s1\" position_id=\"1865\">   femmes_75_89_ans_p,&apos;</span><span class=\"w\" position_id=\"1866\"> </span><span class=\"o\" position_id=\"1867\">||</span><span class=\"w\" position_id=\"1868\"> </span><span class=\"n\" position_id=\"1869\">F7589_P</span><span class=\"w\" position_id=\"1870\"> </span><span class=\"o\" position_id=\"1871\">||</span><span class=\"w\" position_id=\"1872\"> </span><span class=\"s1\" position_id=\"1873\">&apos;,</span>\n</span><span id=\"__span-14-31\" position_id=\"1874\"><a id=\"__codelineno-14-31\" name=\"__codelineno-14-31\" position_id=\"1875\"/><span class=\"s1\" position_id=\"1876\">   femmes_90_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1877\"> </span><span class=\"o\" position_id=\"1878\">||</span><span class=\"w\" position_id=\"1879\"> </span><span class=\"n\" position_id=\"1880\">F90P_P</span><span class=\"w\" position_id=\"1881\"> </span><span class=\"o\" position_id=\"1882\">||</span><span class=\"w\" position_id=\"1883\"> </span><span class=\"s1\" position_id=\"1884\">&apos;,</span>\n</span><span id=\"__span-14-32\" position_id=\"1885\"><a id=\"__codelineno-14-32\" name=\"__codelineno-14-32\" position_id=\"1886\"/><span class=\"s1\" position_id=\"1887\">   femmes_0_19_ans_p,&apos;</span><span class=\"w\" position_id=\"1888\"> </span><span class=\"o\" position_id=\"1889\">||</span><span class=\"w\" position_id=\"1890\"> </span><span class=\"n\" position_id=\"1891\">F0019_P</span><span class=\"w\" position_id=\"1892\"> </span><span class=\"o\" position_id=\"1893\">||</span><span class=\"w\" position_id=\"1894\"> </span><span class=\"s1\" position_id=\"1895\">&apos;,</span>\n</span><span id=\"__span-14-33\" position_id=\"1896\"><a id=\"__codelineno-14-33\" name=\"__codelineno-14-33\" position_id=\"1897\"/><span class=\"s1\" position_id=\"1898\">   femmes_20_64_ans_p,&apos;</span><span class=\"w\" position_id=\"1899\"> </span><span class=\"o\" position_id=\"1900\">||</span><span class=\"w\" position_id=\"1901\"> </span><span class=\"n\" position_id=\"1902\">F2064_P</span><span class=\"w\" position_id=\"1903\"> </span><span class=\"o\" position_id=\"1904\">||</span><span class=\"w\" position_id=\"1905\"> </span><span class=\"s1\" position_id=\"1906\">&apos;,</span>\n</span><span id=\"__span-14-34\" position_id=\"1907\"><a id=\"__codelineno-14-34\" name=\"__codelineno-14-34\" position_id=\"1908\"/><span class=\"s1\" position_id=\"1909\">   femmes_65_ans_plus_p,&apos;</span><span class=\"w\" position_id=\"1910\"> </span><span class=\"o\" position_id=\"1911\">||</span><span class=\"w\" position_id=\"1912\"> </span><span class=\"n\" position_id=\"1913\">F65P_P</span><span class=\"w\" position_id=\"1914\"> </span><span class=\"o\" position_id=\"1915\">||</span><span class=\"w\" position_id=\"1916\"> </span><span class=\"s1\" position_id=\"1917\">&apos;,</span>\n</span><span id=\"__span-14-35\" position_id=\"1918\"><a id=\"__codelineno-14-35\" name=\"__codelineno-14-35\" position_id=\"1919\"/><span class=\"s1\" position_id=\"1920\">   pop_1an_ou_plus_localisee_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1921\"> </span><span class=\"o\" position_id=\"1922\">||</span><span class=\"w\" position_id=\"1923\"> </span><span class=\"n\" position_id=\"1924\">POP01P_P</span><span class=\"w\" position_id=\"1925\"> </span><span class=\"o\" position_id=\"1926\">||</span><span class=\"w\" position_id=\"1927\"> </span><span class=\"s1\" position_id=\"1928\">&apos;,</span>\n</span><span id=\"__span-14-36\" position_id=\"1929\"><a id=\"__codelineno-14-36\" name=\"__codelineno-14-36\" position_id=\"1930\"/><span class=\"s1\" position_id=\"1931\">   pop_1an_ou_plus_meme_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1932\"> </span><span class=\"o\" position_id=\"1933\">||</span><span class=\"w\" position_id=\"1934\"> </span><span class=\"n\" position_id=\"1935\">POP01P_IRAN1_P</span><span class=\"w\" position_id=\"1936\"> </span><span class=\"o\" position_id=\"1937\">||</span><span class=\"w\" position_id=\"1938\"> </span><span class=\"s1\" position_id=\"1939\">&apos;,</span>\n</span><span id=\"__span-14-37\" position_id=\"1940\"><a id=\"__codelineno-14-37\" name=\"__codelineno-14-37\" position_id=\"1941\"/><span class=\"s1\" position_id=\"1942\">   pop_1an_ou_plus_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1943\"> </span><span class=\"o\" position_id=\"1944\">||</span><span class=\"w\" position_id=\"1945\"> </span><span class=\"n\" position_id=\"1946\">POP01P_IRAN2_P</span><span class=\"w\" position_id=\"1947\"> </span><span class=\"o\" position_id=\"1948\">||</span><span class=\"w\" position_id=\"1949\"> </span><span class=\"s1\" position_id=\"1950\">&apos;,</span>\n</span><span id=\"__span-14-38\" position_id=\"1951\"><a id=\"__codelineno-14-38\" name=\"__codelineno-14-38\" position_id=\"1952\"/><span class=\"s1\" position_id=\"1953\">   pop_1an_ou_plus_meme_departement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1954\"> </span><span class=\"o\" position_id=\"1955\">||</span><span class=\"w\" position_id=\"1956\"> </span><span class=\"n\" position_id=\"1957\">POP01P_IRAN3_P</span><span class=\"w\" position_id=\"1958\"> </span><span class=\"o\" position_id=\"1959\">||</span><span class=\"w\" position_id=\"1960\"> </span><span class=\"s1\" position_id=\"1961\">&apos;,</span>\n</span><span id=\"__span-14-39\" position_id=\"1962\"><a id=\"__codelineno-14-39\" name=\"__codelineno-14-39\" position_id=\"1963\"/><span class=\"s1\" position_id=\"1964\">   pop_1an_ou_plus_meme_region_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1965\"> </span><span class=\"o\" position_id=\"1966\">||</span><span class=\"w\" position_id=\"1967\"> </span><span class=\"n\" position_id=\"1968\">POP01P_IRAN4_P</span><span class=\"w\" position_id=\"1969\"> </span><span class=\"o\" position_id=\"1970\">||</span><span class=\"w\" position_id=\"1971\"> </span><span class=\"s1\" position_id=\"1972\">&apos;,</span>\n</span><span id=\"__span-14-40\" position_id=\"1973\"><a id=\"__codelineno-14-40\" name=\"__codelineno-14-40\" position_id=\"1974\"/><span class=\"s1\" position_id=\"1975\">   pop_1an_ou_plus_autre_region_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1976\"> </span><span class=\"o\" position_id=\"1977\">||</span><span class=\"w\" position_id=\"1978\"> </span><span class=\"n\" position_id=\"1979\">POP01P_IRAN5_P</span><span class=\"w\" position_id=\"1980\"> </span><span class=\"o\" position_id=\"1981\">||</span><span class=\"w\" position_id=\"1982\"> </span><span class=\"s1\" position_id=\"1983\">&apos;,</span>\n</span><span id=\"__span-14-41\" position_id=\"1984\"><a id=\"__codelineno-14-41\" name=\"__codelineno-14-41\" position_id=\"1985\"/><span class=\"s1\" position_id=\"1986\">   pop_1an_ou_plus_un_dom_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1987\"> </span><span class=\"o\" position_id=\"1988\">||</span><span class=\"w\" position_id=\"1989\"> </span><span class=\"n\" position_id=\"1990\">POP01P_IRAN6_P</span><span class=\"w\" position_id=\"1991\"> </span><span class=\"o\" position_id=\"1992\">||</span><span class=\"w\" position_id=\"1993\"> </span><span class=\"s1\" position_id=\"1994\">&apos;,</span>\n</span><span id=\"__span-14-42\" position_id=\"1995\"><a id=\"__codelineno-14-42\" name=\"__codelineno-14-42\" position_id=\"1996\"/><span class=\"s1\" position_id=\"1997\">   pop_1an_ou_plus_hors_metropole_ou_dom_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"1998\"> </span><span class=\"o\" position_id=\"1999\">||</span><span class=\"w\" position_id=\"2000\"> </span><span class=\"n\" position_id=\"2001\">POP01P_IRAN7_P</span><span class=\"w\" position_id=\"2002\"> </span><span class=\"o\" position_id=\"2003\">||</span><span class=\"w\" position_id=\"2004\"> </span><span class=\"s1\" position_id=\"2005\">&apos;,</span>\n</span><span id=\"__span-14-43\" position_id=\"2006\"><a id=\"__codelineno-14-43\" name=\"__codelineno-14-43\" position_id=\"2007\"/><span class=\"s1\" position_id=\"2008\">   pop_1_14ans_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2009\"> </span><span class=\"o\" position_id=\"2010\">||</span><span class=\"w\" position_id=\"2011\"> </span><span class=\"n\" position_id=\"2012\">POP0114_IRAN2P_P</span><span class=\"w\" position_id=\"2013\"> </span><span class=\"o\" position_id=\"2014\">||</span><span class=\"w\" position_id=\"2015\"> </span><span class=\"s1\" position_id=\"2016\">&apos;,</span>\n</span><span id=\"__span-14-44\" position_id=\"2017\"><a id=\"__codelineno-14-44\" name=\"__codelineno-14-44\" position_id=\"2018\"/><span class=\"s1\" position_id=\"2019\">   pop_1_14ans_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2020\"> </span><span class=\"o\" position_id=\"2021\">||</span><span class=\"w\" position_id=\"2022\"> </span><span class=\"n\" position_id=\"2023\">POP0114_IRAN2_P</span><span class=\"w\" position_id=\"2024\"> </span><span class=\"o\" position_id=\"2025\">||</span><span class=\"w\" position_id=\"2026\"> </span><span class=\"s1\" position_id=\"2027\">&apos;,</span>\n</span><span id=\"__span-14-45\" position_id=\"2028\"><a id=\"__codelineno-14-45\" name=\"__codelineno-14-45\" position_id=\"2029\"/><span class=\"s1\" position_id=\"2030\">   pop_1_14ans_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2031\"> </span><span class=\"o\" position_id=\"2032\">||</span><span class=\"w\" position_id=\"2033\"> </span><span class=\"n\" position_id=\"2034\">POP0114_IRAN3P_P</span><span class=\"w\" position_id=\"2035\"> </span><span class=\"o\" position_id=\"2036\">||</span><span class=\"w\" position_id=\"2037\"> </span><span class=\"s1\" position_id=\"2038\">&apos;,</span>\n</span><span id=\"__span-14-46\" position_id=\"2039\"><a id=\"__codelineno-14-46\" name=\"__codelineno-14-46\" position_id=\"2040\"/><span class=\"s1\" position_id=\"2041\">   pop_15_24ans_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2042\"> </span><span class=\"o\" position_id=\"2043\">||</span><span class=\"w\" position_id=\"2044\"> </span><span class=\"n\" position_id=\"2045\">POP1524_IRAN2P_P</span><span class=\"w\" position_id=\"2046\"> </span><span class=\"o\" position_id=\"2047\">||</span><span class=\"w\" position_id=\"2048\"> </span><span class=\"s1\" position_id=\"2049\">&apos;,</span>\n</span><span id=\"__span-14-47\" position_id=\"2050\"><a id=\"__codelineno-14-47\" name=\"__codelineno-14-47\" position_id=\"2051\"/><span class=\"s1\" position_id=\"2052\">   pop_15_24ans_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2053\"> </span><span class=\"o\" position_id=\"2054\">||</span><span class=\"w\" position_id=\"2055\"> </span><span class=\"n\" position_id=\"2056\">POP1524_IRAN2_P</span><span class=\"w\" position_id=\"2057\"> </span><span class=\"o\" position_id=\"2058\">||</span><span class=\"w\" position_id=\"2059\"> </span><span class=\"s1\" position_id=\"2060\">&apos;,</span>\n</span><span id=\"__span-14-48\" position_id=\"2061\"><a id=\"__codelineno-14-48\" name=\"__codelineno-14-48\" position_id=\"2062\"/><span class=\"s1\" position_id=\"2063\">   pop_15_24ans_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2064\"> </span><span class=\"o\" position_id=\"2065\">||</span><span class=\"w\" position_id=\"2066\"> </span><span class=\"n\" position_id=\"2067\">POP1524_IRAN3P_P</span><span class=\"w\" position_id=\"2068\"> </span><span class=\"o\" position_id=\"2069\">||</span><span class=\"w\" position_id=\"2070\"> </span><span class=\"s1\" position_id=\"2071\">&apos;,</span>\n</span><span id=\"__span-14-49\" position_id=\"2072\"><a id=\"__codelineno-14-49\" name=\"__codelineno-14-49\" position_id=\"2073\"/><span class=\"s1\" position_id=\"2074\">   pop_25_54ans_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2075\"> </span><span class=\"o\" position_id=\"2076\">||</span><span class=\"w\" position_id=\"2077\"> </span><span class=\"n\" position_id=\"2078\">POP2554_IRAN2P_P</span><span class=\"w\" position_id=\"2079\"> </span><span class=\"o\" position_id=\"2080\">||</span><span class=\"w\" position_id=\"2081\"> </span><span class=\"s1\" position_id=\"2082\">&apos;,</span>\n</span><span id=\"__span-14-50\" position_id=\"2083\"><a id=\"__codelineno-14-50\" name=\"__codelineno-14-50\" position_id=\"2084\"/><span class=\"s1\" position_id=\"2085\">   pop_25_54ans_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2086\"> </span><span class=\"o\" position_id=\"2087\">||</span><span class=\"w\" position_id=\"2088\"> </span><span class=\"n\" position_id=\"2089\">POP2554_IRAN2_P</span><span class=\"w\" position_id=\"2090\"> </span><span class=\"o\" position_id=\"2091\">||</span><span class=\"w\" position_id=\"2092\"> </span><span class=\"s1\" position_id=\"2093\">&apos;,</span>\n</span><span id=\"__span-14-51\" position_id=\"2094\"><a id=\"__codelineno-14-51\" name=\"__codelineno-14-51\" position_id=\"2095\"/><span class=\"s1\" position_id=\"2096\">   pop_25_54ans_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2097\"> </span><span class=\"o\" position_id=\"2098\">||</span><span class=\"w\" position_id=\"2099\"> </span><span class=\"n\" position_id=\"2100\">POP2554_IRAN3P_P</span><span class=\"w\" position_id=\"2101\"> </span><span class=\"o\" position_id=\"2102\">||</span><span class=\"w\" position_id=\"2103\"> </span><span class=\"s1\" position_id=\"2104\">&apos;,</span>\n</span><span id=\"__span-14-52\" position_id=\"2105\"><a id=\"__codelineno-14-52\" name=\"__codelineno-14-52\" position_id=\"2106\"/><span class=\"s1\" position_id=\"2107\">   pop_55_ou_plus_autre_logement_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2108\"> </span><span class=\"o\" position_id=\"2109\">||</span><span class=\"w\" position_id=\"2110\"> </span><span class=\"n\" position_id=\"2111\">POP55P_IRAN2P_P</span><span class=\"w\" position_id=\"2112\"> </span><span class=\"o\" position_id=\"2113\">||</span><span class=\"w\" position_id=\"2114\"> </span><span class=\"s1\" position_id=\"2115\">&apos;,</span>\n</span><span id=\"__span-14-53\" position_id=\"2116\"><a id=\"__codelineno-14-53\" name=\"__codelineno-14-53\" position_id=\"2117\"/><span class=\"s1\" position_id=\"2118\">   pop_55_ou_plus_meme_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2119\"> </span><span class=\"o\" position_id=\"2120\">||</span><span class=\"w\" position_id=\"2121\"> </span><span class=\"n\" position_id=\"2122\">POP55P_IRAN2_P</span><span class=\"w\" position_id=\"2123\"> </span><span class=\"o\" position_id=\"2124\">||</span><span class=\"w\" position_id=\"2125\"> </span><span class=\"s1\" position_id=\"2126\">&apos;,</span>\n</span><span id=\"__span-14-54\" position_id=\"2127\"><a id=\"__codelineno-14-54\" name=\"__codelineno-14-54\" position_id=\"2128\"/><span class=\"s1\" position_id=\"2129\">   pop_55_ou_plus_autre_commune_1an_auparavant_p,&apos;</span><span class=\"w\" position_id=\"2130\"> </span><span class=\"o\" position_id=\"2131\">||</span><span class=\"w\" position_id=\"2132\"> </span><span class=\"n\" position_id=\"2133\">POP55P_IRAN3P_P</span><span class=\"w\" position_id=\"2134\"> </span><span class=\"o\" position_id=\"2135\">||</span><span class=\"w\" position_id=\"2136\"> </span><span class=\"s1\" position_id=\"2137\">&apos;,</span>\n</span><span id=\"__span-14-55\" position_id=\"2138\"><a id=\"__codelineno-14-55\" name=\"__codelineno-14-55\" position_id=\"2139\"/><span class=\"s1\" position_id=\"2140\">   pop_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2141\"> </span><span class=\"o\" position_id=\"2142\">||</span><span class=\"w\" position_id=\"2143\"> </span><span class=\"n\" position_id=\"2144\">POP15P_C</span><span class=\"w\" position_id=\"2145\"> </span><span class=\"o\" position_id=\"2146\">||</span><span class=\"w\" position_id=\"2147\"> </span><span class=\"s1\" position_id=\"2148\">&apos;,</span>\n</span><span id=\"__span-14-56\" position_id=\"2149\"><a id=\"__codelineno-14-56\" name=\"__codelineno-14-56\" position_id=\"2150\"/><span class=\"s1\" position_id=\"2151\">   agriculteurs_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2152\"> </span><span class=\"o\" position_id=\"2153\">||</span><span class=\"w\" position_id=\"2154\"> </span><span class=\"n\" position_id=\"2155\">POP15P_CS1_C</span><span class=\"w\" position_id=\"2156\"> </span><span class=\"o\" position_id=\"2157\">||</span><span class=\"w\" position_id=\"2158\"> </span><span class=\"s1\" position_id=\"2159\">&apos;,</span>\n</span><span id=\"__span-14-57\" position_id=\"2160\"><a id=\"__codelineno-14-57\" name=\"__codelineno-14-57\" position_id=\"2161\"/><span class=\"s1\" position_id=\"2162\">   artisants_commercants_chefs_entreprise_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2163\"> </span><span class=\"o\" position_id=\"2164\">||</span><span class=\"w\" position_id=\"2165\"> </span><span class=\"n\" position_id=\"2166\">POP15P_CS2_C</span><span class=\"w\" position_id=\"2167\"> </span><span class=\"o\" position_id=\"2168\">||</span><span class=\"w\" position_id=\"2169\"> </span><span class=\"s1\" position_id=\"2170\">&apos;,</span>\n</span><span id=\"__span-14-58\" position_id=\"2171\"><a id=\"__codelineno-14-58\" name=\"__codelineno-14-58\" position_id=\"2172\"/><span class=\"s1\" position_id=\"2173\">   cadres_prof_intel_sup_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2174\"> </span><span class=\"o\" position_id=\"2175\">||</span><span class=\"w\" position_id=\"2176\"> </span><span class=\"n\" position_id=\"2177\">POP15P_CS3_C</span><span class=\"w\" position_id=\"2178\"> </span><span class=\"o\" position_id=\"2179\">||</span><span class=\"w\" position_id=\"2180\"> </span><span class=\"s1\" position_id=\"2181\">&apos;,</span>\n</span><span id=\"__span-14-59\" position_id=\"2182\"><a id=\"__codelineno-14-59\" name=\"__codelineno-14-59\" position_id=\"2183\"/><span class=\"s1\" position_id=\"2184\">   professions_intermediaires_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2185\"> </span><span class=\"o\" position_id=\"2186\">||</span><span class=\"w\" position_id=\"2187\"> </span><span class=\"n\" position_id=\"2188\">POP15P_CS4_C</span><span class=\"w\" position_id=\"2189\"> </span><span class=\"o\" position_id=\"2190\">||</span><span class=\"w\" position_id=\"2191\"> </span><span class=\"s1\" position_id=\"2192\">&apos;,</span>\n</span><span id=\"__span-14-60\" position_id=\"2193\"><a id=\"__codelineno-14-60\" name=\"__codelineno-14-60\" position_id=\"2194\"/><span class=\"s1\" position_id=\"2195\">   employes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2196\"> </span><span class=\"o\" position_id=\"2197\">||</span><span class=\"w\" position_id=\"2198\"> </span><span class=\"n\" position_id=\"2199\">POP15P_CS5_C</span><span class=\"w\" position_id=\"2200\"> </span><span class=\"o\" position_id=\"2201\">||</span><span class=\"w\" position_id=\"2202\"> </span><span class=\"s1\" position_id=\"2203\">&apos;,</span>\n</span><span id=\"__span-14-61\" position_id=\"2204\"><a id=\"__codelineno-14-61\" name=\"__codelineno-14-61\" position_id=\"2205\"/><span class=\"s1\" position_id=\"2206\">   ouvriers_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2207\"> </span><span class=\"o\" position_id=\"2208\">||</span><span class=\"w\" position_id=\"2209\"> </span><span class=\"n\" position_id=\"2210\">POP15P_CS6_C</span><span class=\"w\" position_id=\"2211\"> </span><span class=\"o\" position_id=\"2212\">||</span><span class=\"w\" position_id=\"2213\"> </span><span class=\"s1\" position_id=\"2214\">&apos;,</span>\n</span><span id=\"__span-14-62\" position_id=\"2215\"><a id=\"__codelineno-14-62\" name=\"__codelineno-14-62\" position_id=\"2216\"/><span class=\"s1\" position_id=\"2217\">   retraites_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2218\"> </span><span class=\"o\" position_id=\"2219\">||</span><span class=\"w\" position_id=\"2220\"> </span><span class=\"n\" position_id=\"2221\">POP15P_CS7_C</span><span class=\"w\" position_id=\"2222\"> </span><span class=\"o\" position_id=\"2223\">||</span><span class=\"w\" position_id=\"2224\"> </span><span class=\"s1\" position_id=\"2225\">&apos;,</span>\n</span><span id=\"__span-14-63\" position_id=\"2226\"><a id=\"__codelineno-14-63\" name=\"__codelineno-14-63\" position_id=\"2227\"/><span class=\"s1\" position_id=\"2228\">   autres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2229\"> </span><span class=\"o\" position_id=\"2230\">||</span><span class=\"w\" position_id=\"2231\"> </span><span class=\"n\" position_id=\"2232\">POP15P_CS8_C</span><span class=\"w\" position_id=\"2233\"> </span><span class=\"o\" position_id=\"2234\">||</span><span class=\"w\" position_id=\"2235\"> </span><span class=\"s1\" position_id=\"2236\">&apos;,</span>\n</span><span id=\"__span-14-64\" position_id=\"2237\"><a id=\"__codelineno-14-64\" name=\"__codelineno-14-64\" position_id=\"2238\"/><span class=\"s1\" position_id=\"2239\">   hommes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2240\"> </span><span class=\"o\" position_id=\"2241\">||</span><span class=\"w\" position_id=\"2242\"> </span><span class=\"n\" position_id=\"2243\">H15P_C</span><span class=\"w\" position_id=\"2244\"> </span><span class=\"o\" position_id=\"2245\">||</span><span class=\"w\" position_id=\"2246\"> </span><span class=\"s1\" position_id=\"2247\">&apos;,</span>\n</span><span id=\"__span-14-65\" position_id=\"2248\"><a id=\"__codelineno-14-65\" name=\"__codelineno-14-65\" position_id=\"2249\"/><span class=\"s1\" position_id=\"2250\">   h_agriculteurs_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2251\"> </span><span class=\"o\" position_id=\"2252\">||</span><span class=\"w\" position_id=\"2253\"> </span><span class=\"n\" position_id=\"2254\">H15P_CS1_C</span><span class=\"w\" position_id=\"2255\"> </span><span class=\"o\" position_id=\"2256\">||</span><span class=\"w\" position_id=\"2257\"> </span><span class=\"s1\" position_id=\"2258\">&apos;,</span>\n</span><span id=\"__span-14-66\" position_id=\"2259\"><a id=\"__codelineno-14-66\" name=\"__codelineno-14-66\" position_id=\"2260\"/><span class=\"s1\" position_id=\"2261\">   h_artisants_commercants_chefs_entreprise_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2262\"> </span><span class=\"o\" position_id=\"2263\">||</span><span class=\"w\" position_id=\"2264\"> </span><span class=\"n\" position_id=\"2265\">H15P_CS2_C</span><span class=\"w\" position_id=\"2266\"> </span><span class=\"o\" position_id=\"2267\">||</span><span class=\"w\" position_id=\"2268\"> </span><span class=\"s1\" position_id=\"2269\">&apos;,</span>\n</span><span id=\"__span-14-67\" position_id=\"2270\"><a id=\"__codelineno-14-67\" name=\"__codelineno-14-67\" position_id=\"2271\"/><span class=\"s1\" position_id=\"2272\">   h_cadres_prof_intel_sup_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2273\"> </span><span class=\"o\" position_id=\"2274\">||</span><span class=\"w\" position_id=\"2275\"> </span><span class=\"n\" position_id=\"2276\">H15P_CS3_C</span><span class=\"w\" position_id=\"2277\"> </span><span class=\"o\" position_id=\"2278\">||</span><span class=\"w\" position_id=\"2279\"> </span><span class=\"s1\" position_id=\"2280\">&apos;,</span>\n</span><span id=\"__span-14-68\" position_id=\"2281\"><a id=\"__codelineno-14-68\" name=\"__codelineno-14-68\" position_id=\"2282\"/><span class=\"s1\" position_id=\"2283\">   h_professions_intermediaires_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2284\"> </span><span class=\"o\" position_id=\"2285\">||</span><span class=\"w\" position_id=\"2286\"> </span><span class=\"n\" position_id=\"2287\">H15P_CS4_C</span><span class=\"w\" position_id=\"2288\"> </span><span class=\"o\" position_id=\"2289\">||</span><span class=\"w\" position_id=\"2290\"> </span><span class=\"s1\" position_id=\"2291\">&apos;,</span>\n</span><span id=\"__span-14-69\" position_id=\"2292\"><a id=\"__codelineno-14-69\" name=\"__codelineno-14-69\" position_id=\"2293\"/><span class=\"s1\" position_id=\"2294\">   h_employes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2295\"> </span><span class=\"o\" position_id=\"2296\">||</span><span class=\"w\" position_id=\"2297\"> </span><span class=\"n\" position_id=\"2298\">H15P_CS5_C</span><span class=\"w\" position_id=\"2299\"> </span><span class=\"o\" position_id=\"2300\">||</span><span class=\"w\" position_id=\"2301\"> </span><span class=\"s1\" position_id=\"2302\">&apos;,</span>\n</span><span id=\"__span-14-70\" position_id=\"2303\"><a id=\"__codelineno-14-70\" name=\"__codelineno-14-70\" position_id=\"2304\"/><span class=\"s1\" position_id=\"2305\">   h_ouvriers_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2306\"> </span><span class=\"o\" position_id=\"2307\">||</span><span class=\"w\" position_id=\"2308\"> </span><span class=\"n\" position_id=\"2309\">H15P_CS6_C</span><span class=\"w\" position_id=\"2310\"> </span><span class=\"o\" position_id=\"2311\">||</span><span class=\"w\" position_id=\"2312\"> </span><span class=\"s1\" position_id=\"2313\">&apos;,</span>\n</span><span id=\"__span-14-71\" position_id=\"2314\"><a id=\"__codelineno-14-71\" name=\"__codelineno-14-71\" position_id=\"2315\"/><span class=\"s1\" position_id=\"2316\">   h_retraites_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2317\"> </span><span class=\"o\" position_id=\"2318\">||</span><span class=\"w\" position_id=\"2319\"> </span><span class=\"n\" position_id=\"2320\">H15P_CS7_C</span><span class=\"w\" position_id=\"2321\"> </span><span class=\"o\" position_id=\"2322\">||</span><span class=\"w\" position_id=\"2323\"> </span><span class=\"s1\" position_id=\"2324\">&apos;,</span>\n</span><span id=\"__span-14-72\" position_id=\"2325\"><a id=\"__codelineno-14-72\" name=\"__codelineno-14-72\" position_id=\"2326\"/><span class=\"s1\" position_id=\"2327\">   h_autres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2328\"> </span><span class=\"o\" position_id=\"2329\">||</span><span class=\"w\" position_id=\"2330\"> </span><span class=\"n\" position_id=\"2331\">H15P_CS8_C</span><span class=\"w\" position_id=\"2332\"> </span><span class=\"o\" position_id=\"2333\">||</span><span class=\"w\" position_id=\"2334\"> </span><span class=\"s1\" position_id=\"2335\">&apos;,</span>\n</span><span id=\"__span-14-73\" position_id=\"2336\"><a id=\"__codelineno-14-73\" name=\"__codelineno-14-73\" position_id=\"2337\"/><span class=\"s1\" position_id=\"2338\">   femmes_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2339\"> </span><span class=\"o\" position_id=\"2340\">||</span><span class=\"w\" position_id=\"2341\"> </span><span class=\"n\" position_id=\"2342\">F15P_C</span><span class=\"w\" position_id=\"2343\"> </span><span class=\"o\" position_id=\"2344\">||</span><span class=\"w\" position_id=\"2345\"> </span><span class=\"s1\" position_id=\"2346\">&apos;,</span>\n</span><span id=\"__span-14-74\" position_id=\"2347\"><a id=\"__codelineno-14-74\" name=\"__codelineno-14-74\" position_id=\"2348\"/><span class=\"s1\" position_id=\"2349\">   f_agricultrices_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2350\"> </span><span class=\"o\" position_id=\"2351\">||</span><span class=\"w\" position_id=\"2352\"> </span><span class=\"n\" position_id=\"2353\">F15P_CS1_C</span><span class=\"w\" position_id=\"2354\"> </span><span class=\"o\" position_id=\"2355\">||</span><span class=\"w\" position_id=\"2356\"> </span><span class=\"s1\" position_id=\"2357\">&apos;,</span>\n</span><span id=\"__span-14-75\" position_id=\"2358\"><a id=\"__codelineno-14-75\" name=\"__codelineno-14-75\" position_id=\"2359\"/><span class=\"s1\" position_id=\"2360\">   f_artisanes_commercantes_cheffes_entreprise_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2361\"> </span><span class=\"o\" position_id=\"2362\">||</span><span class=\"w\" position_id=\"2363\"> </span><span class=\"n\" position_id=\"2364\">F15P_CS2_C</span><span class=\"w\" position_id=\"2365\"> </span><span class=\"o\" position_id=\"2366\">||</span><span class=\"w\" position_id=\"2367\"> </span><span class=\"s1\" position_id=\"2368\">&apos;,</span>\n</span><span id=\"__span-14-76\" position_id=\"2369\"><a id=\"__codelineno-14-76\" name=\"__codelineno-14-76\" position_id=\"2370\"/><span class=\"s1\" position_id=\"2371\">   f_cadres_prof_intel_sup_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2372\"> </span><span class=\"o\" position_id=\"2373\">||</span><span class=\"w\" position_id=\"2374\"> </span><span class=\"n\" position_id=\"2375\">F15P_CS3_C</span><span class=\"w\" position_id=\"2376\"> </span><span class=\"o\" position_id=\"2377\">||</span><span class=\"w\" position_id=\"2378\"> </span><span class=\"s1\" position_id=\"2379\">&apos;,</span>\n</span><span id=\"__span-14-77\" position_id=\"2380\"><a id=\"__codelineno-14-77\" name=\"__codelineno-14-77\" position_id=\"2381\"/><span class=\"s1\" position_id=\"2382\">   f_professions_intermediaires_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2383\"> </span><span class=\"o\" position_id=\"2384\">||</span><span class=\"w\" position_id=\"2385\"> </span><span class=\"n\" position_id=\"2386\">F15P_CS4_C</span><span class=\"w\" position_id=\"2387\"> </span><span class=\"o\" position_id=\"2388\">||</span><span class=\"w\" position_id=\"2389\"> </span><span class=\"s1\" position_id=\"2390\">&apos;,</span>\n</span><span id=\"__span-14-78\" position_id=\"2391\"><a id=\"__codelineno-14-78\" name=\"__codelineno-14-78\" position_id=\"2392\"/><span class=\"s1\" position_id=\"2393\">   f_employees_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2394\"> </span><span class=\"o\" position_id=\"2395\">||</span><span class=\"w\" position_id=\"2396\"> </span><span class=\"n\" position_id=\"2397\">F15P_CS5_C</span><span class=\"w\" position_id=\"2398\"> </span><span class=\"o\" position_id=\"2399\">||</span><span class=\"w\" position_id=\"2400\"> </span><span class=\"s1\" position_id=\"2401\">&apos;,</span>\n</span><span id=\"__span-14-79\" position_id=\"2402\"><a id=\"__codelineno-14-79\" name=\"__codelineno-14-79\" position_id=\"2403\"/><span class=\"s1\" position_id=\"2404\">   f_ouvrieres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2405\"> </span><span class=\"o\" position_id=\"2406\">||</span><span class=\"w\" position_id=\"2407\"> </span><span class=\"n\" position_id=\"2408\">F15P_CS6_C</span><span class=\"w\" position_id=\"2409\"> </span><span class=\"o\" position_id=\"2410\">||</span><span class=\"w\" position_id=\"2411\"> </span><span class=\"s1\" position_id=\"2412\">&apos;,</span>\n</span><span id=\"__span-14-80\" position_id=\"2413\"><a id=\"__codelineno-14-80\" name=\"__codelineno-14-80\" position_id=\"2414\"/><span class=\"s1\" position_id=\"2415\">   f_retraitees_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2416\"> </span><span class=\"o\" position_id=\"2417\">||</span><span class=\"w\" position_id=\"2418\"> </span><span class=\"n\" position_id=\"2419\">F15P_CS7_C</span><span class=\"w\" position_id=\"2420\"> </span><span class=\"o\" position_id=\"2421\">||</span><span class=\"w\" position_id=\"2422\"> </span><span class=\"s1\" position_id=\"2423\">&apos;,</span>\n</span><span id=\"__span-14-81\" position_id=\"2424\"><a id=\"__codelineno-14-81\" name=\"__codelineno-14-81\" position_id=\"2425\"/><span class=\"s1\" position_id=\"2426\">   f_autres_15_ans_plus_c,&apos;</span><span class=\"w\" position_id=\"2427\"> </span><span class=\"o\" position_id=\"2428\">||</span><span class=\"w\" position_id=\"2429\"> </span><span class=\"n\" position_id=\"2430\">F15P_CS8_C</span><span class=\"w\" position_id=\"2431\"> </span><span class=\"o\" position_id=\"2432\">||</span><span class=\"w\" position_id=\"2433\"> </span><span class=\"s1\" position_id=\"2434\">&apos;,</span>\n</span><span id=\"__span-14-82\" position_id=\"2435\"><a id=\"__codelineno-14-82\" name=\"__codelineno-14-82\" position_id=\"2436\"/><span class=\"s1\" position_id=\"2437\">   population_15_24_ans_c,&apos;</span><span class=\"w\" position_id=\"2438\"> </span><span class=\"o\" position_id=\"2439\">||</span><span class=\"w\" position_id=\"2440\"> </span><span class=\"n\" position_id=\"2441\">POP1524_C</span><span class=\"w\" position_id=\"2442\"> </span><span class=\"o\" position_id=\"2443\">||</span><span class=\"w\" position_id=\"2444\"> </span><span class=\"s1\" position_id=\"2445\">&apos;,</span>\n</span><span id=\"__span-14-83\" position_id=\"2446\"><a id=\"__codelineno-14-83\" name=\"__codelineno-14-83\" position_id=\"2447\"/><span class=\"s1\" position_id=\"2448\">   pop_15_24_ans_agriculteurs_c,&apos;</span><span class=\"w\" position_id=\"2449\"> </span><span class=\"o\" position_id=\"2450\">||</span><span class=\"w\" position_id=\"2451\"> </span><span class=\"n\" position_id=\"2452\">POP1524_CS1_C</span><span class=\"w\" position_id=\"2453\"> </span><span class=\"o\" position_id=\"2454\">||</span><span class=\"w\" position_id=\"2455\"> </span><span class=\"s1\" position_id=\"2456\">&apos;,</span>\n</span><span id=\"__span-14-84\" position_id=\"2457\"><a id=\"__codelineno-14-84\" name=\"__codelineno-14-84\" position_id=\"2458\"/><span class=\"s1\" position_id=\"2459\">   pop_15_24_ans_artisants_commercants_chefs_entreprise_c,&apos;</span><span class=\"w\" position_id=\"2460\"> </span><span class=\"o\" position_id=\"2461\">||</span><span class=\"w\" position_id=\"2462\"> </span><span class=\"n\" position_id=\"2463\">POP1524_CS2_C</span><span class=\"w\" position_id=\"2464\"> </span><span class=\"o\" position_id=\"2465\">||</span><span class=\"w\" position_id=\"2466\"> </span><span class=\"s1\" position_id=\"2467\">&apos;,</span>\n</span><span id=\"__span-14-85\" position_id=\"2468\"><a id=\"__codelineno-14-85\" name=\"__codelineno-14-85\" position_id=\"2469\"/><span class=\"s1\" position_id=\"2470\">   pop_15_24_ans_cadres_prof_intel_sup_c,&apos;</span><span class=\"w\" position_id=\"2471\"> </span><span class=\"o\" position_id=\"2472\">||</span><span class=\"w\" position_id=\"2473\"> </span><span class=\"n\" position_id=\"2474\">POP1524_CS3_C</span><span class=\"w\" position_id=\"2475\"> </span><span class=\"o\" position_id=\"2476\">||</span><span class=\"w\" position_id=\"2477\"> </span><span class=\"s1\" position_id=\"2478\">&apos;,</span>\n</span><span id=\"__span-14-86\" position_id=\"2479\"><a id=\"__codelineno-14-86\" name=\"__codelineno-14-86\" position_id=\"2480\"/><span class=\"s1\" position_id=\"2481\">   pop_15_24_ans_professions_intermediaires_c,&apos;</span><span class=\"w\" position_id=\"2482\"> </span><span class=\"o\" position_id=\"2483\">||</span><span class=\"w\" position_id=\"2484\"> </span><span class=\"n\" position_id=\"2485\">POP1524_CS4_C</span><span class=\"w\" position_id=\"2486\"> </span><span class=\"o\" position_id=\"2487\">||</span><span class=\"w\" position_id=\"2488\"> </span><span class=\"s1\" position_id=\"2489\">&apos;,</span>\n</span><span id=\"__span-14-87\" position_id=\"2490\"><a id=\"__codelineno-14-87\" name=\"__codelineno-14-87\" position_id=\"2491\"/><span class=\"s1\" position_id=\"2492\">   pop_15_24_ans_employes_c,&apos;</span><span class=\"w\" position_id=\"2493\"> </span><span class=\"o\" position_id=\"2494\">||</span><span class=\"w\" position_id=\"2495\"> </span><span class=\"n\" position_id=\"2496\">POP1524_CS5_C</span><span class=\"w\" position_id=\"2497\"> </span><span class=\"o\" position_id=\"2498\">||</span><span class=\"w\" position_id=\"2499\"> </span><span class=\"s1\" position_id=\"2500\">&apos;,</span>\n</span><span id=\"__span-14-88\" position_id=\"2501\"><a id=\"__codelineno-14-88\" name=\"__codelineno-14-88\" position_id=\"2502\"/><span class=\"s1\" position_id=\"2503\">   pop_15_24_ans_ouvriers_c,&apos;</span><span class=\"w\" position_id=\"2504\"> </span><span class=\"o\" position_id=\"2505\">||</span><span class=\"w\" position_id=\"2506\"> </span><span class=\"n\" position_id=\"2507\">POP1524_CS6_C</span><span class=\"w\" position_id=\"2508\"> </span><span class=\"o\" position_id=\"2509\">||</span><span class=\"w\" position_id=\"2510\"> </span><span class=\"s1\" position_id=\"2511\">&apos;,</span>\n</span><span id=\"__span-14-89\" position_id=\"2512\"><a id=\"__codelineno-14-89\" name=\"__codelineno-14-89\" position_id=\"2513\"/><span class=\"s1\" position_id=\"2514\">   pop_15_24_ans_retraites_c,&apos;</span><span class=\"w\" position_id=\"2515\"> </span><span class=\"o\" position_id=\"2516\">||</span><span class=\"w\" position_id=\"2517\"> </span><span class=\"n\" position_id=\"2518\">POP1524_CS7_C</span><span class=\"w\" position_id=\"2519\"> </span><span class=\"o\" position_id=\"2520\">||</span><span class=\"w\" position_id=\"2521\"> </span><span class=\"s1\" position_id=\"2522\">&apos;,</span>\n</span><span id=\"__span-14-90\" position_id=\"2523\"><a id=\"__codelineno-14-90\" name=\"__codelineno-14-90\" position_id=\"2524\"/><span class=\"s1\" position_id=\"2525\">   pop_15_24_ans_autres_c,&apos;</span><span class=\"w\" position_id=\"2526\"> </span><span class=\"o\" position_id=\"2527\">||</span><span class=\"w\" position_id=\"2528\"> </span><span class=\"n\" position_id=\"2529\">POP1524_CS8_C</span><span class=\"w\" position_id=\"2530\"> </span><span class=\"o\" position_id=\"2531\">||</span><span class=\"w\" position_id=\"2532\"> </span><span class=\"s1\" position_id=\"2533\">&apos;,</span>\n</span><span id=\"__span-14-91\" position_id=\"2534\"><a id=\"__codelineno-14-91\" name=\"__codelineno-14-91\" position_id=\"2535\"/><span class=\"s1\" position_id=\"2536\">   population_25_54_ans_c,&apos;</span><span class=\"w\" position_id=\"2537\"> </span><span class=\"o\" position_id=\"2538\">||</span><span class=\"w\" position_id=\"2539\"> </span><span class=\"n\" position_id=\"2540\">POP2554_C</span><span class=\"w\" position_id=\"2541\"> </span><span class=\"o\" position_id=\"2542\">||</span><span class=\"w\" position_id=\"2543\"> </span><span class=\"s1\" position_id=\"2544\">&apos;,</span>\n</span><span id=\"__span-14-92\" position_id=\"2545\"><a id=\"__codelineno-14-92\" name=\"__codelineno-14-92\" position_id=\"2546\"/><span class=\"s1\" position_id=\"2547\">   pop_25_54_ans_agriculteurs_c,&apos;</span><span class=\"w\" position_id=\"2548\"> </span><span class=\"o\" position_id=\"2549\">||</span><span class=\"w\" position_id=\"2550\"> </span><span class=\"n\" position_id=\"2551\">POP2554_CS1_C</span><span class=\"w\" position_id=\"2552\"> </span><span class=\"o\" position_id=\"2553\">||</span><span class=\"w\" position_id=\"2554\"> </span><span class=\"s1\" position_id=\"2555\">&apos;,</span>\n</span><span id=\"__span-14-93\" position_id=\"2556\"><a id=\"__codelineno-14-93\" name=\"__codelineno-14-93\" position_id=\"2557\"/><span class=\"s1\" position_id=\"2558\">   pop_25_54_ans_artisants_commercants_chefs_entreprise_c,&apos;</span><span class=\"w\" position_id=\"2559\"> </span><span class=\"o\" position_id=\"2560\">||</span><span class=\"w\" position_id=\"2561\"> </span><span class=\"n\" position_id=\"2562\">POP2554_CS2_C</span><span class=\"w\" position_id=\"2563\"> </span><span class=\"o\" position_id=\"2564\">||</span><span class=\"w\" position_id=\"2565\"> </span><span class=\"s1\" position_id=\"2566\">&apos;,</span>\n</span><span id=\"__span-14-94\" position_id=\"2567\"><a id=\"__codelineno-14-94\" name=\"__codelineno-14-94\" position_id=\"2568\"/><span class=\"s1\" position_id=\"2569\">   pop_25_54_ans_cadres_prof_intel_sup_c,&apos;</span><span class=\"w\" position_id=\"2570\"> </span><span class=\"o\" position_id=\"2571\">||</span><span class=\"w\" position_id=\"2572\"> </span><span class=\"n\" position_id=\"2573\">POP2554_CS3_C</span><span class=\"w\" position_id=\"2574\"> </span><span class=\"o\" position_id=\"2575\">||</span><span class=\"w\" position_id=\"2576\"> </span><span class=\"s1\" position_id=\"2577\">&apos;,</span>\n</span><span id=\"__span-14-95\" position_id=\"2578\"><a id=\"__codelineno-14-95\" name=\"__codelineno-14-95\" position_id=\"2579\"/><span class=\"s1\" position_id=\"2580\">   pop_25_54_ans_professions_intermediaires_c,&apos;</span><span class=\"w\" position_id=\"2581\"> </span><span class=\"o\" position_id=\"2582\">||</span><span class=\"w\" position_id=\"2583\"> </span><span class=\"n\" position_id=\"2584\">POP2554_CS4_C</span><span class=\"w\" position_id=\"2585\"> </span><span class=\"o\" position_id=\"2586\">||</span><span class=\"w\" position_id=\"2587\"> </span><span class=\"s1\" position_id=\"2588\">&apos;,</span>\n</span><span id=\"__span-14-96\" position_id=\"2589\"><a id=\"__codelineno-14-96\" name=\"__codelineno-14-96\" position_id=\"2590\"/><span class=\"s1\" position_id=\"2591\">   pop_25_54_ans_employes_c,&apos;</span><span class=\"w\" position_id=\"2592\"> </span><span class=\"o\" position_id=\"2593\">||</span><span class=\"w\" position_id=\"2594\"> </span><span class=\"n\" position_id=\"2595\">POP2554_CS5_C</span><span class=\"w\" position_id=\"2596\"> </span><span class=\"o\" position_id=\"2597\">||</span><span class=\"w\" position_id=\"2598\"> </span><span class=\"s1\" position_id=\"2599\">&apos;,</span>\n</span><span id=\"__span-14-97\" position_id=\"2600\"><a id=\"__codelineno-14-97\" name=\"__codelineno-14-97\" position_id=\"2601\"/><span class=\"s1\" position_id=\"2602\">   pop_25_54_ans_ouvriers_c,&apos;</span><span class=\"w\" position_id=\"2603\"> </span><span class=\"o\" position_id=\"2604\">||</span><span class=\"w\" position_id=\"2605\"> </span><span class=\"n\" position_id=\"2606\">POP2554_CS6_C</span><span class=\"w\" position_id=\"2607\"> </span><span class=\"o\" position_id=\"2608\">||</span><span class=\"w\" position_id=\"2609\"> </span><span class=\"s1\" position_id=\"2610\">&apos;,</span>\n</span><span id=\"__span-14-98\" position_id=\"2611\"><a id=\"__codelineno-14-98\" name=\"__codelineno-14-98\" position_id=\"2612\"/><span class=\"s1\" position_id=\"2613\">   pop_25_54_ans_retraites_c,&apos;</span><span class=\"w\" position_id=\"2614\"> </span><span class=\"o\" position_id=\"2615\">||</span><span class=\"w\" position_id=\"2616\"> </span><span class=\"n\" position_id=\"2617\">POP2554_CS7_C</span><span class=\"w\" position_id=\"2618\"> </span><span class=\"o\" position_id=\"2619\">||</span><span class=\"w\" position_id=\"2620\"> </span><span class=\"s1\" position_id=\"2621\">&apos;,</span>\n</span><span id=\"__span-14-99\" position_id=\"2622\"><a id=\"__codelineno-14-99\" name=\"__codelineno-14-99\" position_id=\"2623\"/><span class=\"s1\" position_id=\"2624\">   pop_25_54_ans_autres_c,&apos;</span><span class=\"w\" position_id=\"2625\"> </span><span class=\"o\" position_id=\"2626\">||</span><span class=\"w\" position_id=\"2627\"> </span><span class=\"n\" position_id=\"2628\">POP554_CS8_C</span><span class=\"w\" position_id=\"2629\"> </span><span class=\"o\" position_id=\"2630\">||</span><span class=\"w\" position_id=\"2631\"> </span><span class=\"s1\" position_id=\"2632\">&apos;,</span>\n</span><span id=\"__span-14-100\" position_id=\"2633\"><a id=\"__codelineno-14-100\" name=\"__codelineno-14-100\" position_id=\"2634\"/><span class=\"s1\" position_id=\"2635\">   population_55_ans_et_plus_c,&apos;</span><span class=\"w\" position_id=\"2636\"> </span><span class=\"o\" position_id=\"2637\">||</span><span class=\"w\" position_id=\"2638\"> </span><span class=\"n\" position_id=\"2639\">POP55P_C</span><span class=\"w\" position_id=\"2640\"> </span><span class=\"o\" position_id=\"2641\">||</span><span class=\"w\" position_id=\"2642\"> </span><span class=\"s1\" position_id=\"2643\">&apos;,</span>\n</span><span id=\"__span-14-101\" position_id=\"2644\"><a id=\"__codelineno-14-101\" name=\"__codelineno-14-101\" position_id=\"2645\"/><span class=\"s1\" position_id=\"2646\">   pop_55_ans_et_plus_ans_agriculteurs_c,&apos;</span><span class=\"w\" position_id=\"2647\"> </span><span class=\"o\" position_id=\"2648\">||</span><span class=\"w\" position_id=\"2649\"> </span><span class=\"n\" position_id=\"2650\">POP55P_CS1_C</span><span class=\"w\" position_id=\"2651\"> </span><span class=\"o\" position_id=\"2652\">||</span><span class=\"w\" position_id=\"2653\"> </span><span class=\"s1\" position_id=\"2654\">&apos;,</span>\n</span><span id=\"__span-14-102\" position_id=\"2655\"><a id=\"__codelineno-14-102\" name=\"__codelineno-14-102\" position_id=\"2656\"/><span class=\"s1\" position_id=\"2657\">   pop_55_ans_et_plus_ans_artisants_commercants_chefs_entreprise_c,&apos;</span><span class=\"w\" position_id=\"2658\"> </span><span class=\"o\" position_id=\"2659\">||</span><span class=\"w\" position_id=\"2660\"> </span><span class=\"n\" position_id=\"2661\">POP55P_CS2_C</span><span class=\"w\" position_id=\"2662\"> </span><span class=\"o\" position_id=\"2663\">||</span><span class=\"w\" position_id=\"2664\"> </span><span class=\"s1\" position_id=\"2665\">&apos;,</span>\n</span><span id=\"__span-14-103\" position_id=\"2666\"><a id=\"__codelineno-14-103\" name=\"__codelineno-14-103\" position_id=\"2667\"/><span class=\"s1\" position_id=\"2668\">   pop_55_ans_et_plus_ans_cadres_prof_intel_sup_c,&apos;</span><span class=\"w\" position_id=\"2669\"> </span><span class=\"o\" position_id=\"2670\">||</span><span class=\"w\" position_id=\"2671\"> </span><span class=\"n\" position_id=\"2672\">POP55P_CS3_C</span><span class=\"w\" position_id=\"2673\"> </span><span class=\"o\" position_id=\"2674\">||</span><span class=\"w\" position_id=\"2675\"> </span><span class=\"s1\" position_id=\"2676\">&apos;,</span>\n</span><span id=\"__span-14-104\" position_id=\"2677\"><a id=\"__codelineno-14-104\" name=\"__codelineno-14-104\" position_id=\"2678\"/><span class=\"s1\" position_id=\"2679\">   pop_55_ans_et_plus_ans_professions_intermediaires_c,&apos;</span><span class=\"w\" position_id=\"2680\"> </span><span class=\"o\" position_id=\"2681\">||</span><span class=\"w\" position_id=\"2682\"> </span><span class=\"n\" position_id=\"2683\">POP55P_CS4_C</span><span class=\"w\" position_id=\"2684\"> </span><span class=\"o\" position_id=\"2685\">||</span><span class=\"w\" position_id=\"2686\"> </span><span class=\"s1\" position_id=\"2687\">&apos;,</span>\n</span><span id=\"__span-14-105\" position_id=\"2688\"><a id=\"__codelineno-14-105\" name=\"__codelineno-14-105\" position_id=\"2689\"/><span class=\"s1\" position_id=\"2690\">   pop_55_ans_et_plus_ans_employes_c,&apos;</span><span class=\"w\" position_id=\"2691\"> </span><span class=\"o\" position_id=\"2692\">||</span><span class=\"w\" position_id=\"2693\"> </span><span class=\"n\" position_id=\"2694\">POP55P_CS5_C</span><span class=\"w\" position_id=\"2695\"> </span><span class=\"o\" position_id=\"2696\">||</span><span class=\"w\" position_id=\"2697\"> </span><span class=\"s1\" position_id=\"2698\">&apos;,</span>\n</span><span id=\"__span-14-106\" position_id=\"2699\"><a id=\"__codelineno-14-106\" name=\"__codelineno-14-106\" position_id=\"2700\"/><span class=\"s1\" position_id=\"2701\">   pop_55_ans_et_plus_ans_ouvriers_c,&apos;</span><span class=\"w\" position_id=\"2702\"> </span><span class=\"o\" position_id=\"2703\">||</span><span class=\"w\" position_id=\"2704\"> </span><span class=\"n\" position_id=\"2705\">POP55P_CS6_C</span><span class=\"w\" position_id=\"2706\"> </span><span class=\"o\" position_id=\"2707\">||</span><span class=\"w\" position_id=\"2708\"> </span><span class=\"s1\" position_id=\"2709\">&apos;,</span>\n</span><span id=\"__span-14-107\" position_id=\"2710\"><a id=\"__codelineno-14-107\" name=\"__codelineno-14-107\" position_id=\"2711\"/><span class=\"s1\" position_id=\"2712\">   pop_55_ans_et_plus_ans_retraites_c,&apos;</span><span class=\"w\" position_id=\"2713\"> </span><span class=\"o\" position_id=\"2714\">||</span><span class=\"w\" position_id=\"2715\"> </span><span class=\"n\" position_id=\"2716\">POP55P_CS7_C</span><span class=\"w\" position_id=\"2717\"> </span><span class=\"o\" position_id=\"2718\">||</span><span class=\"w\" position_id=\"2719\"> </span><span class=\"s1\" position_id=\"2720\">&apos;,</span>\n</span><span id=\"__span-14-108\" position_id=\"2721\"><a id=\"__codelineno-14-108\" name=\"__codelineno-14-108\" position_id=\"2722\"/><span class=\"s1\" position_id=\"2723\">   pop_55_ans_et_plus_ans_autres_c,&apos;</span><span class=\"w\" position_id=\"2724\"> </span><span class=\"o\" position_id=\"2725\">||</span><span class=\"w\" position_id=\"2726\"> </span><span class=\"n\" position_id=\"2727\">POP55P_CS8_C</span><span class=\"p\" position_id=\"2728\">,</span>\n</span><span id=\"__span-14-109\" position_id=\"2729\"><a id=\"__codelineno-14-109\" name=\"__codelineno-14-109\" position_id=\"2730\"/><span class=\"w\" position_id=\"2731\">  </span><span class=\"n\" position_id=\"2732\">E</span><span class=\"s1\" position_id=\"2733\">&apos;[\\t\\n\\r]&apos;</span><span class=\"p\" position_id=\"2734\">,</span><span class=\"s1\" position_id=\"2735\">&apos;&apos;</span><span class=\"p\" position_id=\"2736\">,</span><span class=\"s1\" position_id=\"2737\">&apos;g&apos;</span><span class=\"p\" position_id=\"2738\">)</span><span class=\"w\" position_id=\"2739\"> </span><span class=\"k\" position_id=\"2740\">AS</span><span class=\"w\" position_id=\"2741\"> </span><span class=\"k\" position_id=\"2742\">data</span>\n</span><span id=\"__span-14-110\" position_id=\"2743\"><a id=\"__codelineno-14-110\" name=\"__codelineno-14-110\" position_id=\"2744\"/><span class=\"w\" position_id=\"2745\">  </span><span class=\"k\" position_id=\"2746\">FROM</span><span class=\"w\" position_id=\"2747\"> </span><span class=\"n\" position_id=\"2748\">insee</span><span class=\"p\" position_id=\"2749\">.</span><span class=\"n\" position_id=\"2750\">rp_population_import</span>\n</span><span id=\"__span-14-111\" position_id=\"2751\"><a id=\"__codelineno-14-111\" name=\"__codelineno-14-111\" position_id=\"2752\"/><span class=\"w\" position_id=\"2753\"> </span><span class=\"p\" position_id=\"2754\">)</span>\n</span><span id=\"__span-14-112\" position_id=\"2755\"><a id=\"__codelineno-14-112\" name=\"__codelineno-14-112\" position_id=\"2756\"/>\n</span><span id=\"__span-14-113\" position_id=\"2757\"><a id=\"__codelineno-14-113\" name=\"__codelineno-14-113\" position_id=\"2758\"/><span class=\"c1\" position_id=\"2759\">-- Conversion of text strings to json and insertion into the table.</span>\n</span><span id=\"__span-14-114\" position_id=\"2760\"><a id=\"__codelineno-14-114\" name=\"__codelineno-14-114\" position_id=\"2761\"/><span class=\"k\" position_id=\"2762\">INSERT</span><span class=\"w\" position_id=\"2763\"> </span><span class=\"k\" position_id=\"2764\">INTO</span><span class=\"w\" position_id=\"2765\"> </span><span class=\"n\" position_id=\"2766\">insee</span><span class=\"p\" position_id=\"2767\">.</span><span class=\"n\" position_id=\"2768\">donnees_communes</span><span class=\"p\" position_id=\"2769\">(</span><span class=\"ss\" position_id=\"2770\">&quot;code_commune&quot;</span><span class=\"p\" position_id=\"2771\">,</span><span class=\"ss\" position_id=\"2772\">&quot;annee&quot;</span><span class=\"p\" position_id=\"2773\">,</span><span class=\"ss\" position_id=\"2774\">&quot;fk_base&quot;</span><span class=\"p\" position_id=\"2775\">,</span><span class=\"ss\" position_id=\"2776\">&quot;donnees&quot;</span><span class=\"p\" position_id=\"2777\">)</span>\n</span><span id=\"__span-14-115\" position_id=\"2778\"><a id=\"__codelineno-14-115\" name=\"__codelineno-14-115\" position_id=\"2779\"/><span class=\"k\" position_id=\"2780\">SELECT</span>\n</span><span id=\"__span-14-116\" position_id=\"2781\"><a id=\"__codelineno-14-116\" name=\"__codelineno-14-116\" position_id=\"2782\"/><span class=\"w\" position_id=\"2783\">    </span><span class=\"n\" position_id=\"2784\">CODGEO</span><span class=\"p\" position_id=\"2785\">,</span>\n</span><span id=\"__span-14-117\" position_id=\"2786\"><a id=\"__codelineno-14-117\" name=\"__codelineno-14-117\" position_id=\"2787\"/><span class=\"w\" position_id=\"2788\">    </span><span class=\"mi\" position_id=\"2789\">2021</span><span class=\"p\" position_id=\"2790\">,</span>\n</span><span id=\"__span-14-118\" position_id=\"2791\"><a id=\"__codelineno-14-118\" name=\"__codelineno-14-118\" position_id=\"2792\"/><span class=\"w\" position_id=\"2793\">    </span><span class=\"mi\" position_id=\"2794\">1</span><span class=\"p\" position_id=\"2795\">,</span>\n</span><span id=\"__span-14-119\" position_id=\"2796\"><a id=\"__codelineno-14-119\" name=\"__codelineno-14-119\" position_id=\"2797\"/><span class=\"w\" position_id=\"2798\">    </span><span class=\"n\" position_id=\"2799\">jsonb_object</span><span class=\"p\" position_id=\"2800\">(</span><span class=\"n\" position_id=\"2801\">string_to_array</span><span class=\"p\" position_id=\"2802\">(</span><span class=\"k\" position_id=\"2803\">data</span><span class=\"p\" position_id=\"2804\">::</span><span class=\"nb\" position_id=\"2805\">text</span><span class=\"p\" position_id=\"2806\">,</span><span class=\"s1\" position_id=\"2807\">&apos;,&apos;</span><span class=\"p\" position_id=\"2808\">))</span>\n</span><span id=\"__span-14-120\" position_id=\"2809\"><a id=\"__codelineno-14-120\" name=\"__codelineno-14-120\" position_id=\"2810\"/><span class=\"k\" position_id=\"2811\">FROM</span><span class=\"w\" position_id=\"2812\"> </span><span class=\"n\" position_id=\"2813\">d</span>\n</span><span id=\"__span-14-121\" position_id=\"2814\"><a id=\"__codelineno-14-121\" name=\"__codelineno-14-121\" position_id=\"2815\"/><span class=\"k\" position_id=\"2816\">ORDER</span><span class=\"w\" position_id=\"2817\"> </span><span class=\"k\" position_id=\"2818\">BY</span><span class=\"w\" position_id=\"2819\"> </span><span class=\"ss\" position_id=\"2820\">&quot;CODGEO&quot;</span><span class=\"p\" position_id=\"2821\">;</span>\n</span></code></pre></div></td></tr></tbody></table>", "x": "/html/body/div[3]/main/div/div[3]/article/div[16]/table"}]}, "tags": ["table"], "label": "table", "web_segment_id": 78, "global_sentence_id": 155, "edu_l1_label": "EDU_O"}, {"txt": "Wow.", "language": "english", "position": {"atoms": [{"position_id": 4552, "txt": "Wow.", "x": "/html/body/div[3]/main/div/div[3]/article/p[45]/em"}]}, "tags": ["em"], "label": "O", "web_segment_id": 79, "global_sentence_id": 156, "edu_l1_label": "EDU_O"}, {"txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/2S0NHy4qFrDDhRzs2x13mY.png", "language": "english", "position": {"atoms": [{"position_id": 2826, "txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/2S0NHy4qFrDDhRzs2x13mY.png", "x": "/html/body/div[3]/main/div/div[3]/article/p[46]/a/img"}]}, "tags": ["img"], "label": "figure", "web_segment_id": 80, "global_sentence_id": 157, "edu_l1_label": "EDU_O"}, {"txt": "Be sure to group the inserts in this order:", "language": "english", "position": {"atoms": [{"position_id": 4554, "txt": "Be sure to group the inserts in this order:", "x": "/html/body/div[3]/main/div/div[3]/article/p[47]"}]}, "tags": [], "label": "content", "web_segment_id": 81, "global_sentence_id": 158, "edu_l1_label": "IOS"}, {"txt": " year/base/commune_code, to make it easier for PostgreSQL to read the data.", "language": "english", "position": {"atoms": [{"position_id": 4555, "txt": " year/base/commune_code, to make it easier for PostgreSQL to read the data.", "x": "/html/body/div[3]/main/div/div[3]/article/p[47]"}]}, "tags": [], "label": "content", "web_segment_id": 81, "global_sentence_id": 159, "edu_l1_label": "IOS"}, {"txt": "Now, imagine that, like the author of these lines, your fat, pudgy fingers stumble and slip on your keyboard while writing this query, that a typo slips in, and then it's drama.", "language": "english", "position": {"atoms": [{"position_id": 4557, "txt": "Now, imagine that, like the author of these lines, your fat, pudgy fingers stumble and slip on your keyboard while writing this query, that a typo slips in, and then it's drama.", "x": "/html/body/div[3]/main/div/div[3]/article/p[48]"}]}, "tags": [], "label": "content", "web_segment_id": 82, "global_sentence_id": 160, "edu_l1_label": "IOS"}, {"txt": " How do you change the name of a key already encoded in the table?", "language": "english", "position": {"atoms": [{"position_id": 4558, "txt": " How do you change the name of a key already encoded in the table?", "x": "/html/body/div[3]/main/div/div[3]/article/p[48]"}]}, "tags": [], "label": "content", "web_segment_id": 82, "global_sentence_id": 161, "edu_l1_label": "IOS"}, {"txt": " Here's how:", "language": "english", "position": {"atoms": [{"position_id": 4559, "txt": " Here's how:", "x": "/html/body/div[3]/main/div/div[3]/article/p[48]"}]}, "tags": [], "label": "content", "web_segment_id": 82, "global_sentence_id": 162, "edu_l1_label": "IOS"}, {"txt": "CREATETABLEexample(idintPRIMARYKEY,champjsonb);INSERTINTOexampleVALUES(1,'{\"nme\": \"", "language": "english", "position": {"atoms": [{"position_id": 4561, "txt": "CREATE", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[1]"}, {"position_id": 4563, "txt": "TABLE", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[3]"}, {"position_id": 4565, "txt": "example", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[5]"}, {"position_id": 4567, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[6]"}, {"position_id": 4569, "txt": "id", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[7]"}, {"position_id": 4571, "txt": "int", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[9]"}, {"position_id": 4573, "txt": "PRIMARY", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[11]"}, {"position_id": 4575, "txt": "KEY", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[13]"}, {"position_id": 4577, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[14]"}, {"position_id": 4579, "txt": "champ", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[16]"}, {"position_id": 4581, "txt": "jsonb", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[18]"}, {"position_id": 4583, "txt": ");", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[1]/span[19]"}, {"position_id": 4585, "txt": "INSERT", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[2]/span[1]"}, {"position_id": 4587, "txt": "INTO", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[2]/span[3]"}, {"position_id": 4589, "txt": "example", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[2]/span[5]"}, {"position_id": 4591, "txt": "VALUES", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[2]/span[7]"}, {"position_id": 4593, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[3]/span[2]"}, {"position_id": 4595, "txt": "1", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[3]/span[3]"}, {"position_id": 4597, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[3]/span[4]"}, {"position_id": 4599, "txt": "'{\"nme\": \"", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[3]/span[6]"}]}, "tags": [], "label": "code", "web_segment_id": 83, "global_sentence_id": 163, "edu_l1_label": "IOS"}, {"txt": "test\"}'),(2,'{\"nme\": \"", "language": "english", "position": {"atoms": [{"position_id": 4600, "txt": "test\"}'", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[3]/span[6]"}, {"position_id": 4602, "txt": "),", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[3]/span[7]"}, {"position_id": 4604, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[4]/span[2]"}, {"position_id": 4606, "txt": "2", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[4]/span[3]"}, {"position_id": 4608, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[4]/span[4]"}, {"position_id": 4610, "txt": "'{\"nme\": \"", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[4]/span[6]"}]}, "tags": [], "label": "code", "web_segment_id": 83, "global_sentence_id": 164, "edu_l1_label": "EDU_O"}, {"txt": "second test\"}');UPDATEexampleSETchamp=champ-'nme'||jsonb_build_object('name',champ->'nme')WHEREchamp?'nme'returning*;", "language": "english", "position": {"atoms": [{"position_id": 4611, "txt": "second test\"}'", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[4]/span[6]"}, {"position_id": 4613, "txt": ");", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[4]/span[7]"}, {"position_id": 4615, "txt": "UPDATE", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[6]/span[1]"}, {"position_id": 4617, "txt": "example", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[6]/span[3]"}, {"position_id": 4619, "txt": "SET", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[1]"}, {"position_id": 4621, "txt": "champ", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[3]"}, {"position_id": 4623, "txt": "=", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[5]"}, {"position_id": 4625, "txt": "champ", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[7]"}, {"position_id": 4627, "txt": "-", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[9]"}, {"position_id": 4629, "txt": "'nme'", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[11]"}, {"position_id": 4631, "txt": "||", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[13]"}, {"position_id": 4633, "txt": "jsonb_build_object", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[15]"}, {"position_id": 4635, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[16]"}, {"position_id": 4637, "txt": "'name'", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[17]"}, {"position_id": 4639, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[18]"}, {"position_id": 4641, "txt": "champ", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[20]"}, {"position_id": 4643, "txt": "->", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[22]"}, {"position_id": 4645, "txt": "'nme'", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[24]"}, {"position_id": 4647, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[7]/span[25]"}, {"position_id": 4649, "txt": "WHERE", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[8]/span[1]"}, {"position_id": 4651, "txt": "champ", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[8]/span[3]"}, {"position_id": 4653, "txt": "?", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[8]/span[5]"}, {"position_id": 4655, "txt": "'nme'", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[8]/span[7]"}, {"position_id": 4657, "txt": "returning", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[9]/span[1]"}, {"position_id": 4659, "txt": "*", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[9]/span[3]"}, {"position_id": 4661, "txt": ";", "x": "/html/body/div[3]/main/div/div[3]/article/div[17]/pre/code/span[9]/span[4]"}]}, "tags": [], "label": "code", "web_segment_id": 83, "global_sentence_id": 165, "edu_l1_label": "EDU_O"}, {"txt": "- is an operator used to remove a key from a json object.", "language": "english", "position": {"atoms": [{"position_id": 4663, "txt": "-", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[1]"}, {"position_id": 4665, "txt": " is an operator used to remove a key from a json object.", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 84, "global_sentence_id": 166, "edu_l1_label": "IOS"}, {"txt": " For our UPDATE, we therefore remove our typo from the entire object.", "language": "english", "position": {"atoms": [{"position_id": 4666, "txt": " For our UPDATE, we therefore remove our typo from the entire object.", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 84, "global_sentence_id": 167, "edu_l1_label": "IOS"}, {"txt": " In addition, we concatenate everything else with the construction of a new object in which we correct the key name.", "language": "english", "position": {"atoms": [{"position_id": 4667, "txt": " In addition, we concatenate everything else with the construction of a new object in which we correct the key name.", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[1]"}]}, "tags": [], "label": "content", "web_segment_id": 84, "global_sentence_id": 168, "edu_l1_label": "IOS"}, {"txt": " We also assign the value of the key being deleted, which is still usable at UPDATE time, to the fields that originally contained it with ?.", "language": "english", "position": {"atoms": [{"position_id": 4668, "txt": " We also assign the value of the key being deleted, which is still usable at UPDATE time, to the fields that originally contained it with ", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[1]"}, {"position_id": 4670, "txt": "?", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[2]"}, {"position_id": 4672, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[49]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 84, "global_sentence_id": 169, "edu_l1_label": "IOS"}, {"txt": "Now what ?", "language": "english", "position": {"atoms": [{"position_id": 4674, "txt": "Now what ?", "x": "/html/body/div[3]/main/div/div[3]/article/h2[7]"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 85, "global_sentence_id": 170, "edu_l1_label": "BOS"}, {"txt": " What do we do with this ?#", "language": "english", "position": {"atoms": [{"position_id": 4675, "txt": " What do we do with this ?", "x": "/html/body/div[3]/main/div/div[3]/article/h2[7]"}, {"position_id": 4677, "txt": "#", "x": "/html/body/div[3]/main/div/div[3]/article/h2[7]/a"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 85, "global_sentence_id": 171, "edu_l1_label": "IOS"}, {"txt": "So far, we've only worked with the population component for its latest version.", "language": "english", "position": {"atoms": [{"position_id": 4679, "txt": "So far, we've only worked with the population component for its latest version.", "x": "/html/body/div[3]/main/div/div[3]/article/p[50]"}]}, "tags": [], "label": "content", "web_segment_id": 86, "global_sentence_id": 172, "edu_l1_label": "IOS"}, {"txt": " Let's now imagine that we repeat the exercise for all 6 sections and over several years, bearing in mind that over time, certain fields may appear or disappear; changes in the levels of diplomas observed, for example.", "language": "english", "position": {"atoms": [{"position_id": 4680, "txt": " Let's now imagine that we repeat the exercise for all 6 sections and over several years, bearing in mind that over time, certain fields may appear or disappear; changes in the levels of diplomas observed, for example.", "x": "/html/body/div[3]/main/div/div[3]/article/p[50]"}]}, "tags": [], "label": "content", "web_segment_id": 86, "global_sentence_id": 173, "edu_l1_label": "IOS"}, {"txt": " It would be interesting to retrieve a table showing the first and last year of presence of each key.", "language": "english", "position": {"atoms": [{"position_id": 4681, "txt": " It would be interesting to retrieve a table showing the first and last year of presence of each key.", "x": "/html/body/div[3]/main/div/div[3]/article/p[50]"}]}, "tags": [], "label": "content", "web_segment_id": 86, "global_sentence_id": 174, "edu_l1_label": "IOS"}, {"txt": " Let's just say that during this work, we took the opportunity to update a “correspondance_clefs_champs” table listing each key present and its original INSEE name (at least, the one we had standardized).", "language": "english", "position": {"atoms": [{"position_id": 4682, "txt": " Let's just say that during this work, we took the opportunity to update a “correspondance_clefs_champs” table listing each key present and its original INSEE name (at least, the one we had standardized).", "x": "/html/body/div[3]/main/div/div[3]/article/p[50]"}]}, "tags": [], "label": "content", "web_segment_id": 86, "global_sentence_id": 175, "edu_l1_label": "IOS"}, {"txt": "CREATEMATERIALIZEDVIEWinsee.presence_clefs_anneesASSELECTc.pk_idASpk_id,c.clef_jsonASclef_json,c.fk_baseASfk_base,a.premiereASpremiere_annee_presence,a.derniereASderniere_annee_presenceFROMinsee.correspondance_clefs_champsASc,LATERAL(SELECTmin(annee)ASpremiere,max(annee)ASderniereFROMinsee.donnees_communesWHEREfk_base=c.fk_baseANDdonnees?c.clef_json)ASaORDERBYfk_base,clef_json;", "language": "english", "position": {"atoms": [{"position_id": 4684, "txt": "CREATE", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[1]"}, {"position_id": 4686, "txt": "MATERIALIZED", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[3]"}, {"position_id": 4688, "txt": "VIEW", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[5]"}, {"position_id": 4690, "txt": "insee", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[7]"}, {"position_id": 4692, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[8]"}, {"position_id": 4694, "txt": "presence_clefs_annees", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[9]"}, {"position_id": 4696, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[1]/span[11]"}, {"position_id": 4698, "txt": "SELECT", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[2]/span"}, {"position_id": 4700, "txt": "c", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[3]/span[2]"}, {"position_id": 4702, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[3]/span[3]"}, {"position_id": 4704, "txt": "pk_id", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[3]/span[4]"}, {"position_id": 4706, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[3]/span[6]"}, {"position_id": 4708, "txt": "pk_id", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[3]/span[8]"}, {"position_id": 4710, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[3]/span[9]"}, {"position_id": 4712, "txt": "c", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[4]/span[2]"}, {"position_id": 4714, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[4]/span[3]"}, {"position_id": 4716, "txt": "clef_json", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[4]/span[4]"}, {"position_id": 4718, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[4]/span[6]"}, {"position_id": 4720, "txt": "clef_json", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[4]/span[8]"}, {"position_id": 4722, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[4]/span[9]"}, {"position_id": 4724, "txt": "c", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[5]/span[2]"}, {"position_id": 4726, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[5]/span[3]"}, {"position_id": 4728, "txt": "fk_base", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[5]/span[4]"}, {"position_id": 4730, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[5]/span[6]"}, {"position_id": 4732, "txt": "fk_base", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[5]/span[8]"}, {"position_id": 4734, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[5]/span[9]"}, {"position_id": 4736, "txt": "a", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[6]/span[2]"}, {"position_id": 4738, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[6]/span[3]"}, {"position_id": 4740, "txt": "premiere", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[6]/span[4]"}, {"position_id": 4742, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[6]/span[6]"}, {"position_id": 4744, "txt": "premiere_annee_presence", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[6]/span[8]"}, {"position_id": 4746, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[6]/span[9]"}, {"position_id": 4748, "txt": "a", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[7]/span[2]"}, {"position_id": 4750, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[7]/span[3]"}, {"position_id": 4752, "txt": "derniere", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[7]/span[4]"}, {"position_id": 4754, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[7]/span[6]"}, {"position_id": 4756, "txt": "derniere_annee_presence", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[7]/span[8]"}, {"position_id": 4758, "txt": "FROM", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[1]"}, {"position_id": 4760, "txt": "insee", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[3]"}, {"position_id": 4762, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[4]"}, {"position_id": 4764, "txt": "correspondance_clefs_champs", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[5]"}, {"position_id": 4766, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[7]"}, {"position_id": 4768, "txt": "c", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[9]"}, {"position_id": 4770, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[8]/span[10]"}, {"position_id": 4772, "txt": "LATERAL", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[9]/span[2]"}, {"position_id": 4774, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[9]/span[4]"}, {"position_id": 4776, "txt": "SELECT", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[9]/span[5]"}, {"position_id": 4778, "txt": "min", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[2]"}, {"position_id": 4780, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[3]"}, {"position_id": 4782, "txt": "annee", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[4]"}, {"position_id": 4784, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[5]"}, {"position_id": 4786, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[7]"}, {"position_id": 4788, "txt": "premiere", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[9]"}, {"position_id": 4790, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[10]/span[10]"}, {"position_id": 4792, "txt": "max", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[11]/span[2]"}, {"position_id": 4794, "txt": "(", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[11]/span[3]"}, {"position_id": 4796, "txt": "annee", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[11]/span[4]"}, {"position_id": 4798, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[11]/span[5]"}, {"position_id": 4800, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[11]/span[7]"}, {"position_id": 4802, "txt": "derniere", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[11]/span[9]"}, {"position_id": 4804, "txt": "FROM", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[2]"}, {"position_id": 4806, "txt": "insee", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[4]"}, {"position_id": 4808, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[5]"}, {"position_id": 4810, "txt": "donnees_communes", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[6]"}, {"position_id": 4812, "txt": "WHERE", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[8]"}, {"position_id": 4814, "txt": "fk_base", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[10]"}, {"position_id": 4816, "txt": "=", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[12]"}, {"position_id": 4818, "txt": "c", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[14]"}, {"position_id": 4820, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[15]"}, {"position_id": 4822, "txt": "fk_base", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[16]"}, {"position_id": 4824, "txt": "AND", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[18]"}, {"position_id": 4826, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[20]"}, {"position_id": 4828, "txt": "?", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[22]"}, {"position_id": 4830, "txt": "c", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[24]"}, {"position_id": 4832, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[25]"}, {"position_id": 4834, "txt": "clef_json", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[26]"}, {"position_id": 4836, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[27]"}, {"position_id": 4838, "txt": "AS", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[29]"}, {"position_id": 4840, "txt": "a", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[12]/span[31]"}, {"position_id": 4842, "txt": "ORDER", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[13]/span[1]"}, {"position_id": 4844, "txt": "BY", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[13]/span[3]"}, {"position_id": 4846, "txt": "fk_base", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[13]/span[5]"}, {"position_id": 4848, "txt": ",", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[13]/span[6]"}, {"position_id": 4850, "txt": "clef_json", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[13]/span[8]"}, {"position_id": 4852, "txt": ";", "x": "/html/body/div[3]/main/div/div[3]/article/div[18]/pre/code/span[13]/span[9]"}]}, "tags": [], "label": "code", "web_segment_id": 87, "global_sentence_id": 176, "edu_l1_label": "IOS"}, {"txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/3BJ8Kp3ahuCr4ugmzU3Vz36M.png", "language": "english", "position": {"atoms": [{"position_id": 3098, "txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/3BJ8Kp3ahuCr4ugmzU3Vz36M.png", "x": "/html/body/div[3]/main/div/div[3]/article/p[51]/a/img"}]}, "tags": ["img"], "label": "figure", "web_segment_id": 88, "global_sentence_id": 177, "edu_l1_label": "EDU_O"}, {"txt": "The only difficulty here is the presence of LATERAL.", "language": "english", "position": {"atoms": [{"position_id": 4854, "txt": "The only difficulty here is the presence of ", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]"}, {"position_id": 4856, "txt": "LATERAL", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/a"}, {"position_id": 4858, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/a"}]}, "tags": [], "label": "content", "web_segment_id": 89, "global_sentence_id": 178, "edu_l1_label": "IOS"}, {"txt": " This “word” allows you to use a field from the main query in a subquery placed in a FROM clause.", "language": "english", "position": {"atoms": [{"position_id": 4859, "txt": " This “word” allows you to use a field from the main query in a subquery placed in a FROM clause.", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/a"}]}, "tags": [], "label": "content", "web_segment_id": 89, "global_sentence_id": 179, "edu_l1_label": "IOS"}, {"txt": " The elements of the subquery will then be evaluated atomically before being joined to the original table.", "language": "english", "position": {"atoms": [{"position_id": 4860, "txt": " The elements of the subquery will then be evaluated atomically before being joined to the original table.", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/a"}]}, "tags": [], "label": "content", "web_segment_id": 89, "global_sentence_id": 180, "edu_l1_label": "IOS"}, {"txt": " Yes, it's not very easy to explain.", "language": "english", "position": {"atoms": [{"position_id": 4861, "txt": " Yes, it's not very easy to explain.", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/a"}]}, "tags": [], "label": "content", "web_segment_id": 89, "global_sentence_id": 181, "edu_l1_label": "IOS"}, {"txt": " Here, the WHERE of the subquery will query the donnees field of the “donnees_communes” table to see if it sees the clef_json (json key) being evaluated in the “correspondance_clefs_champs” table with alias “c”.", "language": "english", "position": {"atoms": [{"position_id": 4862, "txt": " Here, the WHERE of the subquery will query the ", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/a"}, {"position_id": 4864, "txt": "donnees", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/code"}, {"position_id": 4866, "txt": " field of the “donnees_communes” table to see if it sees the clef_json (json key) being evaluated in the “correspondance_clefs_champs” table with alias “c”.", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/code"}]}, "tags": [], "label": "content", "web_segment_id": 89, "global_sentence_id": 182, "edu_l1_label": "IOS"}, {"txt": " If so, we take the minimum/maximum value of the year field and attach it to this line and this line only.", "language": "english", "position": {"atoms": [{"position_id": 4867, "txt": " If so, we take the minimum/maximum value of the year field and attach it to this line and this line only.", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/code"}]}, "tags": [], "label": "content", "web_segment_id": 89, "global_sentence_id": 183, "edu_l1_label": "IOS"}, {"txt": " Then evaluate the following clef_json ... (evaluated atomically)", "language": "english", "position": {"atoms": [{"position_id": 4868, "txt": " Then evaluate the following clef_json ... (", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/code"}, {"position_id": 4870, "txt": "evaluated atomically", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/em"}, {"position_id": 4872, "txt": ")", "x": "/html/body/div[3]/main/div/div[3]/article/p[52]/em"}]}, "tags": ["em"], "label": "content", "web_segment_id": 89, "global_sentence_id": 184, "edu_l1_label": "IOS"}, {"txt": "Now we'd like to offer a product that's a little easier to use with all this.", "language": "english", "position": {"atoms": [{"position_id": 4874, "txt": "Now we'd like to offer a product that's a little easier to use with all this.", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]"}]}, "tags": [], "label": "content", "web_segment_id": 90, "global_sentence_id": 185, "edu_l1_label": "IOS"}, {"txt": " Excuse me in advance, I'll copy a 50-line query a second time.", "language": "english", "position": {"atoms": [{"position_id": 4875, "txt": " Excuse me in advance, I'll copy a 50-line query a second time.", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]"}]}, "tags": [], "label": "content", "web_segment_id": 90, "global_sentence_id": 186, "edu_l1_label": "IOS"}, {"txt": " The only table used here that we haven't created is a zonages_administratifs table containing municipalities codes in a code_admin field and a fk_type field containing the type of administrative zoning (1 for municipalities).", "language": "english", "position": {"atoms": [{"position_id": 4876, "txt": " The only table used here that we haven't created is a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]"}, {"position_id": 4878, "txt": "zonages_administratifs", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]/code[1]"}, {"position_id": 4880, "txt": " table containing municipalities codes in a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]/code[1]"}, {"position_id": 4882, "txt": "code_admin", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]/code[2]"}, {"position_id": 4884, "txt": " field and a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]/code[2]"}, {"position_id": 4886, "txt": "fk_type", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]/code[3]"}, {"position_id": 4888, "txt": " field containing the type of administrative zoning (1 for municipalities).", "x": "/html/body/div[3]/main/div/div[3]/article/p[53]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 90, "global_sentence_id": 187, "edu_l1_label": "IOS"}, {"txt": "<table <table class=\"highlighttable\" position_id=\"3108\"><tbody position_id=\"3109\"><tr position_id=\"3110\"><th class=\"filename\" colspan=\"2\" position_id=\"3111\"><span class=\"filename\" position_id=\"3112\">Creation of the embellished materialized view</span></th></tr><tr position_id=\"3113\"><td class=\"linenos\" position_id=\"3114\"><div class=\"linenodiv\" position_id=\"3115\"/></td><td class=\"code\" position_id=\"3206\"><div position_id=\"3207\"><pre id=\"__code_17\" position_id=\"3208\"><span position_id=\"3209\"/><code class=\"md-code__content\" tabindex=\"0\" position_id=\"3210\"><span id=\"__span-17-1\" position_id=\"3211\"><a id=\"__codelineno-17-1\" name=\"__codelineno-17-1\" position_id=\"3212\"/><span class=\"k\" position_id=\"3213\">CREATE</span><span class=\"w\" position_id=\"3214\"> </span><span class=\"n\" position_id=\"3215\">MATERIALIZED</span><span class=\"w\" position_id=\"3216\"> </span><span class=\"k\" position_id=\"3217\">VIEW</span><span class=\"w\" position_id=\"3218\"> </span><span class=\"n\" position_id=\"3219\">insee</span><span class=\"p\" position_id=\"3220\">.</span><span class=\"n\" position_id=\"3221\">donnees_communes_olap</span><span class=\"w\" position_id=\"3222\"> </span><span class=\"k\" position_id=\"3223\">AS</span></span><span id=\"__span-17-2\" position_id=\"3224\"><a id=\"__codelineno-17-2\" name=\"__codelineno-17-2\" position_id=\"3225\"/><span class=\"k\" position_id=\"3226\">WITH</span></span><span id=\"__span-17-3\" position_id=\"3227\"><a id=\"__codelineno-17-3\" name=\"__codelineno-17-3\" position_id=\"3228\"/><span class=\"c1\" position_id=\"3229\">-- Municipalities codes selection</span></span><span id=\"__span-17-4\" position_id=\"3230\"><a id=\"__codelineno-17-4\" name=\"__codelineno-17-4\" position_id=\"3231\"/><span class=\"w\" position_id=\"3232\"> </span><span class=\"n\" position_id=\"3233\">codes_com</span><span class=\"w\" position_id=\"3234\"> </span><span class=\"k\" position_id=\"3235\">AS</span><span class=\"w\" position_id=\"3236\"> </span><span class=\"p\" position_id=\"3237\">(</span></span><span id=\"__span-17-5\" position_id=\"3238\"><a id=\"__codelineno-17-5\" name=\"__codelineno-17-5\" position_id=\"3239\"/><span class=\"w\" position_id=\"3240\">  </span><span class=\"k\" position_id=\"3241\">SELECT</span></span><span id=\"__span-17-6\" position_id=\"3242\"><a id=\"__codelineno-17-6\" name=\"__codelineno-17-6\" position_id=\"3243\"/><span class=\"w\" position_id=\"3244\">   </span><span class=\"n\" position_id=\"3245\">code_admin</span></span><span id=\"__span-17-7\" position_id=\"3246\"><a id=\"__codelineno-17-7\" name=\"__codelineno-17-7\" position_id=\"3247\"/><span class=\"w\" position_id=\"3248\">  </span><span class=\"k\" position_id=\"3249\">FROM</span><span class=\"w\" position_id=\"3250\"> </span><span class=\"n\" position_id=\"3251\">insee</span><span class=\"p\" position_id=\"3252\">.</span><span class=\"n\" position_id=\"3253\">zonages_administratifs</span></span><span id=\"__span-17-8\" position_id=\"3254\"><a id=\"__codelineno-17-8\" name=\"__codelineno-17-8\" position_id=\"3255\"/><span class=\"w\" position_id=\"3256\">  </span><span class=\"k\" position_id=\"3257\">WHERE</span><span class=\"w\" position_id=\"3258\"> </span><span class=\"n\" position_id=\"3259\">fk_type</span><span class=\"w\" position_id=\"3260\"> </span><span class=\"o\" position_id=\"3261\">=</span><span class=\"w\" position_id=\"3262\"> </span><span class=\"mi\" position_id=\"3263\">1</span></span><span id=\"__span-17-9\" position_id=\"3264\"><a id=\"__codelineno-17-9\" name=\"__codelineno-17-9\" position_id=\"3265\"/><span class=\"w\" position_id=\"3266\"> </span><span class=\"p\" position_id=\"3267\">),</span></span><span id=\"__span-17-10\" position_id=\"3268\"><a id=\"__codelineno-17-10\" name=\"__codelineno-17-10\" position_id=\"3269\"/><span class=\"c1\" position_id=\"3270\">-- Key selections and unnest by year</span></span><span id=\"__span-17-11\" position_id=\"3271\"><a id=\"__codelineno-17-11\" name=\"__codelineno-17-11\" position_id=\"3272\"/><span class=\"w\" position_id=\"3273\"> </span><span class=\"n\" position_id=\"3274\">clefs</span><span class=\"w\" position_id=\"3275\"> </span><span class=\"k\" position_id=\"3276\">AS</span><span class=\"w\" position_id=\"3277\"> </span><span class=\"p\" position_id=\"3278\">(</span></span><span id=\"__span-17-12\" position_id=\"3279\"><a id=\"__codelineno-17-12\" name=\"__codelineno-17-12\" position_id=\"3280\"/><span class=\"w\" position_id=\"3281\">  </span><span class=\"k\" position_id=\"3282\">SELECT</span></span><span id=\"__span-17-13\" position_id=\"3283\"><a id=\"__codelineno-17-13\" name=\"__codelineno-17-13\" position_id=\"3284\"/><span class=\"w\" position_id=\"3285\">   </span><span class=\"n\" position_id=\"3286\">pk_id</span><span class=\"p\" position_id=\"3287\">,</span></span><span id=\"__span-17-14\" position_id=\"3288\"><a id=\"__codelineno-17-14\" name=\"__codelineno-17-14\" position_id=\"3289\"/><span class=\"w\" position_id=\"3290\">   </span><span class=\"n\" position_id=\"3291\">generate_series</span><span class=\"p\" position_id=\"3292\">(</span><span class=\"n\" position_id=\"3293\">premiere_annee_presence</span><span class=\"p\" position_id=\"3294\">,</span><span class=\"w\" position_id=\"3295\"> </span><span class=\"n\" position_id=\"3296\">derniere_annee_presence</span><span class=\"p\" position_id=\"3297\">,</span><span class=\"mi\" position_id=\"3298\">1</span><span class=\"p\" position_id=\"3299\">)</span><span class=\"w\" position_id=\"3300\"> </span><span class=\"k\" position_id=\"3301\">AS</span><span class=\"w\" position_id=\"3302\"> </span><span class=\"n\" position_id=\"3303\">annee</span></span><span id=\"__span-17-15\" position_id=\"3304\"><a id=\"__codelineno-17-15\" name=\"__codelineno-17-15\" position_id=\"3305\"/><span class=\"w\" position_id=\"3306\">  </span><span class=\"k\" position_id=\"3307\">FROM</span><span class=\"w\" position_id=\"3308\"> </span><span class=\"n\" position_id=\"3309\">insee</span><span class=\"p\" position_id=\"3310\">.</span><span class=\"n\" position_id=\"3311\">presence_clefs_annees</span></span><span id=\"__span-17-16\" position_id=\"3312\"><a id=\"__codelineno-17-16\" name=\"__codelineno-17-16\" position_id=\"3313\"/><span class=\"w\" position_id=\"3314\"> </span><span class=\"p\" position_id=\"3315\">),</span></span><span id=\"__span-17-17\" position_id=\"3316\"><a id=\"__codelineno-17-17\" name=\"__codelineno-17-17\" position_id=\"3317\"/><span class=\"c1\" position_id=\"3318\">-- cross join keys + single year and communal codes</span></span><span id=\"__span-17-18\" position_id=\"3319\"><a id=\"__codelineno-17-18\" name=\"__codelineno-17-18\" position_id=\"3320\"/><span class=\"w\" position_id=\"3321\"> </span><span class=\"n\" position_id=\"3322\">tc</span><span class=\"w\" position_id=\"3323\"> </span><span class=\"k\" position_id=\"3324\">AS</span><span class=\"w\" position_id=\"3325\"> </span><span class=\"p\" position_id=\"3326\">(</span></span><span id=\"__span-17-19\" position_id=\"3327\"><a id=\"__codelineno-17-19\" name=\"__codelineno-17-19\" position_id=\"3328\"/><span class=\"w\" position_id=\"3329\"> </span><span class=\"k\" position_id=\"3330\">SELECT</span></span><span id=\"__span-17-20\" position_id=\"3331\"><a id=\"__codelineno-17-20\" name=\"__codelineno-17-20\" position_id=\"3332\"/><span class=\"w\" position_id=\"3333\">  </span><span class=\"n\" position_id=\"3334\">cc</span><span class=\"p\" position_id=\"3335\">.</span><span class=\"n\" position_id=\"3336\">code_admin</span><span class=\"w\" position_id=\"3337\"> </span><span class=\"k\" position_id=\"3338\">AS</span><span class=\"w\" position_id=\"3339\"> </span><span class=\"n\" position_id=\"3340\">code_com</span><span class=\"p\" position_id=\"3341\">,</span></span><span id=\"__span-17-21\" position_id=\"3342\"><a id=\"__codelineno-17-21\" name=\"__codelineno-17-21\" position_id=\"3343\"/><span class=\"w\" position_id=\"3344\">  </span><span class=\"n\" position_id=\"3345\">cl</span><span class=\"p\" position_id=\"3346\">.</span><span class=\"n\" position_id=\"3347\">annee</span><span class=\"w\" position_id=\"3348\"> </span><span class=\"k\" position_id=\"3349\">AS</span><span class=\"w\" position_id=\"3350\"> </span><span class=\"n\" position_id=\"3351\">annee</span><span class=\"p\" position_id=\"3352\">,</span></span><span id=\"__span-17-22\" position_id=\"3353\"><a id=\"__codelineno-17-22\" name=\"__codelineno-17-22\" position_id=\"3354\"/><span class=\"w\" position_id=\"3355\">  </span><span class=\"n\" position_id=\"3356\">cl</span><span class=\"p\" position_id=\"3357\">.</span><span class=\"n\" position_id=\"3358\">pk_id</span><span class=\"w\" position_id=\"3359\"> </span><span class=\"k\" position_id=\"3360\">AS</span><span class=\"w\" position_id=\"3361\"> </span><span class=\"n\" position_id=\"3362\">pk_id</span></span><span id=\"__span-17-23\" position_id=\"3363\"><a id=\"__codelineno-17-23\" name=\"__codelineno-17-23\" position_id=\"3364\"/><span class=\"w\" position_id=\"3365\"> </span><span class=\"k\" position_id=\"3366\">FROM</span><span class=\"w\" position_id=\"3367\"> </span><span class=\"n\" position_id=\"3368\">codes_com</span><span class=\"w\" position_id=\"3369\"> </span><span class=\"k\" position_id=\"3370\">AS</span><span class=\"w\" position_id=\"3371\"> </span><span class=\"n\" position_id=\"3372\">cc</span></span><span id=\"__span-17-24\" position_id=\"3373\"><a id=\"__codelineno-17-24\" name=\"__codelineno-17-24\" position_id=\"3374\"/><span class=\"w\" position_id=\"3375\"> </span><span class=\"k\" position_id=\"3376\">CROSS</span><span class=\"w\" position_id=\"3377\"> </span><span class=\"k\" position_id=\"3378\">JOIN</span><span class=\"w\" position_id=\"3379\"> </span><span class=\"n\" position_id=\"3380\">clefs</span><span class=\"w\" position_id=\"3381\"> </span><span class=\"k\" position_id=\"3382\">AS</span><span class=\"w\" position_id=\"3383\"> </span><span class=\"n\" position_id=\"3384\">cl</span></span><span id=\"__span-17-25\" position_id=\"3385\"><a id=\"__codelineno-17-25\" name=\"__codelineno-17-25\" position_id=\"3386\"/><span class=\"w\" position_id=\"3387\"> </span><span class=\"p\" position_id=\"3388\">),</span></span><span id=\"__span-17-26\" position_id=\"3389\"><a id=\"__codelineno-17-26\" name=\"__codelineno-17-26\" position_id=\"3390\"/><span class=\"c1\" position_id=\"3391\">-- Final selection with data recovery</span></span><span id=\"__span-17-27\" position_id=\"3392\"><a id=\"__codelineno-17-27\" name=\"__codelineno-17-27\" position_id=\"3393\"/><span class=\"w\" position_id=\"3394\"> </span><span class=\"k\" position_id=\"3395\">final</span><span class=\"w\" position_id=\"3396\"> </span><span class=\"k\" position_id=\"3397\">AS</span><span class=\"w\" position_id=\"3398\"> </span><span class=\"p\" position_id=\"3399\">(</span></span><span id=\"__span-17-28\" position_id=\"3400\"><a id=\"__codelineno-17-28\" name=\"__codelineno-17-28\" position_id=\"3401\"/><span class=\"w\" position_id=\"3402\"> </span><span class=\"k\" position_id=\"3403\">SELECT</span></span><span id=\"__span-17-29\" position_id=\"3404\"><a id=\"__codelineno-17-29\" name=\"__codelineno-17-29\" position_id=\"3405\"/><span class=\"w\" position_id=\"3406\">  </span><span class=\"n\" position_id=\"3407\">tc</span><span class=\"p\" position_id=\"3408\">.</span><span class=\"n\" position_id=\"3409\">code_com</span><span class=\"p\" position_id=\"3410\">,</span></span><span id=\"__span-17-30\" position_id=\"3411\"><a id=\"__codelineno-17-30\" name=\"__codelineno-17-30\" position_id=\"3412\"/><span class=\"w\" position_id=\"3413\">  </span><span class=\"n\" position_id=\"3414\">tc</span><span class=\"p\" position_id=\"3415\">.</span><span class=\"n\" position_id=\"3416\">annee</span><span class=\"p\" position_id=\"3417\">,</span></span><span id=\"__span-17-31\" position_id=\"3418\"><a id=\"__codelineno-17-31\" name=\"__codelineno-17-31\" position_id=\"3419\"/><span class=\"w\" position_id=\"3420\">  </span><span class=\"n\" position_id=\"3421\">co</span><span class=\"p\" position_id=\"3422\">.</span><span class=\"n\" position_id=\"3423\">fk_base</span><span class=\"p\" position_id=\"3424\">,</span></span><span id=\"__span-17-32\" position_id=\"3425\"><a id=\"__codelineno-17-32\" name=\"__codelineno-17-32\" position_id=\"3426\"/><span class=\"w\" position_id=\"3427\">  </span><span class=\"n\" position_id=\"3428\">co</span><span class=\"p\" position_id=\"3429\">.</span><span class=\"n\" position_id=\"3430\">clef_json</span><span class=\"p\" position_id=\"3431\">,</span></span><span id=\"__span-17-33\" position_id=\"3432\"><a id=\"__codelineno-17-33\" name=\"__codelineno-17-33\" position_id=\"3433\"/><span class=\"w\" position_id=\"3434\">  </span><span class=\"k\" position_id=\"3435\">CASE</span></span><span id=\"__span-17-34\" position_id=\"3436\"><a id=\"__codelineno-17-34\" name=\"__codelineno-17-34\" position_id=\"3437\"/><span class=\"w\" position_id=\"3438\">   </span><span class=\"k\" position_id=\"3439\">WHEN</span><span class=\"w\" position_id=\"3440\"> </span><span class=\"p\" position_id=\"3441\">(</span><span class=\"n\" position_id=\"3442\">d</span><span class=\"p\" position_id=\"3443\">.</span><span class=\"n\" position_id=\"3444\">donnees</span><span class=\"w\" position_id=\"3445\"> </span><span class=\"o\" position_id=\"3446\">-&gt;&gt;</span><span class=\"w\" position_id=\"3447\"> </span><span class=\"n\" position_id=\"3448\">clef_json</span><span class=\"p\" position_id=\"3449\">)</span><span class=\"w\" position_id=\"3450\"> </span><span class=\"k\" position_id=\"3451\">IN</span><span class=\"w\" position_id=\"3452\"> </span><span class=\"p\" position_id=\"3453\">(</span><span class=\"s1\" position_id=\"3454\">&apos;&apos;</span><span class=\"p\" position_id=\"3455\">,</span><span class=\"s1\" position_id=\"3456\">&apos;null&apos;</span><span class=\"p\" position_id=\"3457\">,</span><span class=\"s1\" position_id=\"3458\">&apos;s&apos;</span><span class=\"p\" position_id=\"3459\">,</span><span class=\"s1\" position_id=\"3460\">&apos;nd&apos;</span><span class=\"p\" position_id=\"3461\">)</span><span class=\"w\" position_id=\"3462\"> </span><span class=\"k\" position_id=\"3463\">THEN</span><span class=\"w\" position_id=\"3464\"> </span><span class=\"k\" position_id=\"3465\">NULL</span></span><span id=\"__span-17-35\" position_id=\"3466\"><a id=\"__codelineno-17-35\" name=\"__codelineno-17-35\" position_id=\"3467\"/><span class=\"w\" position_id=\"3468\">   </span><span class=\"k\" position_id=\"3469\">ELSE</span><span class=\"w\" position_id=\"3470\"> </span><span class=\"p\" position_id=\"3471\">((</span><span class=\"n\" position_id=\"3472\">d</span><span class=\"p\" position_id=\"3473\">.</span><span class=\"n\" position_id=\"3474\">donnees</span><span class=\"w\" position_id=\"3475\"> </span><span class=\"o\" position_id=\"3476\">-&gt;&gt;</span><span class=\"w\" position_id=\"3477\"> </span><span class=\"n\" position_id=\"3478\">clef_json</span><span class=\"p\" position_id=\"3479\">)::</span><span class=\"nb\" position_id=\"3480\">real</span><span class=\"p\" position_id=\"3481\">)</span></span><span id=\"__span-17-36\" position_id=\"3482\"><a id=\"__codelineno-17-36\" name=\"__codelineno-17-36\" position_id=\"3483\"/><span class=\"w\" position_id=\"3484\">  </span><span class=\"k\" position_id=\"3485\">END</span><span class=\"w\" position_id=\"3486\"> </span><span class=\"k\" position_id=\"3487\">AS</span><span class=\"w\" position_id=\"3488\"> </span><span class=\"n\" position_id=\"3489\">valeur</span></span><span id=\"__span-17-37\" position_id=\"3490\"><a id=\"__codelineno-17-37\" name=\"__codelineno-17-37\" position_id=\"3491\"/><span class=\"w\" position_id=\"3492\"> </span><span class=\"k\" position_id=\"3493\">FROM</span><span class=\"w\" position_id=\"3494\"> </span><span class=\"n\" position_id=\"3495\">tc</span></span><span id=\"__span-17-38\" position_id=\"3496\"><a id=\"__codelineno-17-38\" name=\"__codelineno-17-38\" position_id=\"3497\"/><span class=\"w\" position_id=\"3498\"> </span><span class=\"k\" position_id=\"3499\">JOIN</span></span><span id=\"__span-17-39\" position_id=\"3500\"><a id=\"__codelineno-17-39\" name=\"__codelineno-17-39\" position_id=\"3501\"/><span class=\"w\" position_id=\"3502\">  </span><span class=\"n\" position_id=\"3503\">insee</span><span class=\"p\" position_id=\"3504\">.</span><span class=\"n\" position_id=\"3505\">donnees_communes</span><span class=\"w\" position_id=\"3506\"> </span><span class=\"k\" position_id=\"3507\">AS</span><span class=\"w\" position_id=\"3508\"> </span><span class=\"n\" position_id=\"3509\">d</span><span class=\"w\" position_id=\"3510\"> </span><span class=\"k\" position_id=\"3511\">ON</span><span class=\"w\" position_id=\"3512\"> </span><span class=\"p\" position_id=\"3513\">(</span><span class=\"n\" position_id=\"3514\">tc</span><span class=\"p\" position_id=\"3515\">.</span><span class=\"n\" position_id=\"3516\">code_com</span><span class=\"w\" position_id=\"3517\"> </span><span class=\"o\" position_id=\"3518\">=</span><span class=\"w\" position_id=\"3519\"> </span><span class=\"n\" position_id=\"3520\">d</span><span class=\"p\" position_id=\"3521\">.</span><span class=\"n\" position_id=\"3522\">code_commune</span><span class=\"w\" position_id=\"3523\"> </span><span class=\"k\" position_id=\"3524\">AND</span><span class=\"w\" position_id=\"3525\"> </span><span class=\"n\" position_id=\"3526\">tc</span><span class=\"p\" position_id=\"3527\">.</span><span class=\"n\" position_id=\"3528\">annee</span><span class=\"w\" position_id=\"3529\"> </span><span class=\"o\" position_id=\"3530\">=</span><span class=\"w\" position_id=\"3531\"> </span><span class=\"n\" position_id=\"3532\">d</span><span class=\"p\" position_id=\"3533\">.</span><span class=\"n\" position_id=\"3534\">annee</span><span class=\"p\" position_id=\"3535\">)</span></span><span id=\"__span-17-40\" position_id=\"3536\"><a id=\"__codelineno-17-40\" name=\"__codelineno-17-40\" position_id=\"3537\"/><span class=\"w\" position_id=\"3538\"> </span><span class=\"k\" position_id=\"3539\">LEFT</span><span class=\"w\" position_id=\"3540\"> </span><span class=\"k\" position_id=\"3541\">JOIN</span></span><span id=\"__span-17-41\" position_id=\"3542\"><a id=\"__codelineno-17-41\" name=\"__codelineno-17-41\" position_id=\"3543\"/><span class=\"w\" position_id=\"3544\">  </span><span class=\"n\" position_id=\"3545\">insee</span><span class=\"p\" position_id=\"3546\">.</span><span class=\"n\" position_id=\"3547\">presence_clefs_annees</span><span class=\"w\" position_id=\"3548\"> </span><span class=\"k\" position_id=\"3549\">AS</span><span class=\"w\" position_id=\"3550\"> </span><span class=\"n\" position_id=\"3551\">co</span><span class=\"w\" position_id=\"3552\"> </span><span class=\"k\" position_id=\"3553\">ON</span><span class=\"w\" position_id=\"3554\"> </span><span class=\"n\" position_id=\"3555\">tc</span><span class=\"p\" position_id=\"3556\">.</span><span class=\"n\" position_id=\"3557\">pk_id</span><span class=\"w\" position_id=\"3558\"> </span><span class=\"o\" position_id=\"3559\">=</span><span class=\"w\" position_id=\"3560\"> </span><span class=\"n\" position_id=\"3561\">co</span><span class=\"p\" position_id=\"3562\">.</span><span class=\"n\" position_id=\"3563\">pk_id</span></span><span id=\"__span-17-42\" position_id=\"3564\"><a id=\"__codelineno-17-42\" name=\"__codelineno-17-42\" position_id=\"3565\"/><span class=\"w\" position_id=\"3566\"> </span><span class=\"k\" position_id=\"3567\">ORDER</span><span class=\"w\" position_id=\"3568\"> </span><span class=\"k\" position_id=\"3569\">BY</span><span class=\"w\" position_id=\"3570\"> </span><span class=\"n\" position_id=\"3571\">tc</span><span class=\"p\" position_id=\"3572\">.</span><span class=\"n\" position_id=\"3573\">annee</span><span class=\"p\" position_id=\"3574\">,</span><span class=\"w\" position_id=\"3575\"> </span><span class=\"n\" position_id=\"3576\">co</span><span class=\"p\" position_id=\"3577\">.</span><span class=\"n\" position_id=\"3578\">fk_base</span><span class=\"p\" position_id=\"3579\">,</span><span class=\"w\" position_id=\"3580\"> </span><span class=\"n\" position_id=\"3581\">co</span><span class=\"p\" position_id=\"3582\">.</span><span class=\"n\" position_id=\"3583\">clef_json</span><span class=\"p\" position_id=\"3584\">,</span><span class=\"w\" position_id=\"3585\"> </span><span class=\"n\" position_id=\"3586\">tc</span><span class=\"p\" position_id=\"3587\">.</span><span class=\"n\" position_id=\"3588\">code_com</span></span><span id=\"__span-17-43\" position_id=\"3589\"><a id=\"__codelineno-17-43\" name=\"__codelineno-17-43\" position_id=\"3590\"/><span class=\"w\" position_id=\"3591\"> </span><span class=\"p\" position_id=\"3592\">)</span></span><span id=\"__span-17-44\" position_id=\"3593\"><a id=\"__codelineno-17-44\" name=\"__codelineno-17-44\" position_id=\"3594\"/><span class=\"k\" position_id=\"3595\">SELECT</span><span class=\"w\" position_id=\"3596\"> </span><span class=\"o\" position_id=\"3597\">*</span><span class=\"w\" position_id=\"3598\"> </span><span class=\"k\" position_id=\"3599\">FROM</span><span class=\"w\" position_id=\"3600\"> </span><span class=\"k\" position_id=\"3601\">final</span><span class=\"w\" position_id=\"3602\"> </span><span class=\"k\" position_id=\"3603\">WHERE</span><span class=\"w\" position_id=\"3604\"> </span><span class=\"n\" position_id=\"3605\">valeur</span><span class=\"w\" position_id=\"3606\"> </span><span class=\"k\" position_id=\"3607\">IS</span><span class=\"w\" position_id=\"3608\"> </span><span class=\"k\" position_id=\"3609\">NOT</span><span class=\"w\" position_id=\"3610\"> </span><span class=\"k\" position_id=\"3611\">NULL</span><span class=\"p\" position_id=\"3612\">;</span></span></code></pre></div></td></tr></tbody></table>", "language": "english", "position": {"atoms": [{"position_id": 3108, "txt": "<table <table class=\"highlighttable\" position_id=\"3108\"><tbody position_id=\"3109\"><tr position_id=\"3110\"><th class=\"filename\" colspan=\"2\" position_id=\"3111\"><span class=\"filename\" position_id=\"3112\">Creation of the embellished materialized view</span></th></tr><tr position_id=\"3113\"><td class=\"linenos\" position_id=\"3114\"><div class=\"linenodiv\" position_id=\"3115\"/></td><td class=\"code\" position_id=\"3206\"><div position_id=\"3207\"><pre id=\"__code_17\" position_id=\"3208\"><span position_id=\"3209\"/><code class=\"md-code__content\" tabindex=\"0\" position_id=\"3210\"><span id=\"__span-17-1\" position_id=\"3211\"><a id=\"__codelineno-17-1\" name=\"__codelineno-17-1\" position_id=\"3212\"/><span class=\"k\" position_id=\"3213\">CREATE</span><span class=\"w\" position_id=\"3214\"> </span><span class=\"n\" position_id=\"3215\">MATERIALIZED</span><span class=\"w\" position_id=\"3216\"> </span><span class=\"k\" position_id=\"3217\">VIEW</span><span class=\"w\" position_id=\"3218\"> </span><span class=\"n\" position_id=\"3219\">insee</span><span class=\"p\" position_id=\"3220\">.</span><span class=\"n\" position_id=\"3221\">donnees_communes_olap</span><span class=\"w\" position_id=\"3222\"> </span><span class=\"k\" position_id=\"3223\">AS</span>\n</span><span id=\"__span-17-2\" position_id=\"3224\"><a id=\"__codelineno-17-2\" name=\"__codelineno-17-2\" position_id=\"3225\"/><span class=\"k\" position_id=\"3226\">WITH</span>\n</span><span id=\"__span-17-3\" position_id=\"3227\"><a id=\"__codelineno-17-3\" name=\"__codelineno-17-3\" position_id=\"3228\"/><span class=\"c1\" position_id=\"3229\">-- Municipalities codes selection</span>\n</span><span id=\"__span-17-4\" position_id=\"3230\"><a id=\"__codelineno-17-4\" name=\"__codelineno-17-4\" position_id=\"3231\"/><span class=\"w\" position_id=\"3232\"> </span><span class=\"n\" position_id=\"3233\">codes_com</span><span class=\"w\" position_id=\"3234\"> </span><span class=\"k\" position_id=\"3235\">AS</span><span class=\"w\" position_id=\"3236\"> </span><span class=\"p\" position_id=\"3237\">(</span>\n</span><span id=\"__span-17-5\" position_id=\"3238\"><a id=\"__codelineno-17-5\" name=\"__codelineno-17-5\" position_id=\"3239\"/><span class=\"w\" position_id=\"3240\">  </span><span class=\"k\" position_id=\"3241\">SELECT</span>\n</span><span id=\"__span-17-6\" position_id=\"3242\"><a id=\"__codelineno-17-6\" name=\"__codelineno-17-6\" position_id=\"3243\"/><span class=\"w\" position_id=\"3244\">   </span><span class=\"n\" position_id=\"3245\">code_admin</span>\n</span><span id=\"__span-17-7\" position_id=\"3246\"><a id=\"__codelineno-17-7\" name=\"__codelineno-17-7\" position_id=\"3247\"/><span class=\"w\" position_id=\"3248\">  </span><span class=\"k\" position_id=\"3249\">FROM</span><span class=\"w\" position_id=\"3250\"> </span><span class=\"n\" position_id=\"3251\">insee</span><span class=\"p\" position_id=\"3252\">.</span><span class=\"n\" position_id=\"3253\">zonages_administratifs</span>\n</span><span id=\"__span-17-8\" position_id=\"3254\"><a id=\"__codelineno-17-8\" name=\"__codelineno-17-8\" position_id=\"3255\"/><span class=\"w\" position_id=\"3256\">  </span><span class=\"k\" position_id=\"3257\">WHERE</span><span class=\"w\" position_id=\"3258\"> </span><span class=\"n\" position_id=\"3259\">fk_type</span><span class=\"w\" position_id=\"3260\"> </span><span class=\"o\" position_id=\"3261\">=</span><span class=\"w\" position_id=\"3262\"> </span><span class=\"mi\" position_id=\"3263\">1</span>\n</span><span id=\"__span-17-9\" position_id=\"3264\"><a id=\"__codelineno-17-9\" name=\"__codelineno-17-9\" position_id=\"3265\"/><span class=\"w\" position_id=\"3266\"> </span><span class=\"p\" position_id=\"3267\">),</span>\n</span><span id=\"__span-17-10\" position_id=\"3268\"><a id=\"__codelineno-17-10\" name=\"__codelineno-17-10\" position_id=\"3269\"/><span class=\"c1\" position_id=\"3270\">-- Key selections and unnest by year</span>\n</span><span id=\"__span-17-11\" position_id=\"3271\"><a id=\"__codelineno-17-11\" name=\"__codelineno-17-11\" position_id=\"3272\"/><span class=\"w\" position_id=\"3273\"> </span><span class=\"n\" position_id=\"3274\">clefs</span><span class=\"w\" position_id=\"3275\"> </span><span class=\"k\" position_id=\"3276\">AS</span><span class=\"w\" position_id=\"3277\"> </span><span class=\"p\" position_id=\"3278\">(</span>\n</span><span id=\"__span-17-12\" position_id=\"3279\"><a id=\"__codelineno-17-12\" name=\"__codelineno-17-12\" position_id=\"3280\"/><span class=\"w\" position_id=\"3281\">  </span><span class=\"k\" position_id=\"3282\">SELECT</span>\n</span><span id=\"__span-17-13\" position_id=\"3283\"><a id=\"__codelineno-17-13\" name=\"__codelineno-17-13\" position_id=\"3284\"/><span class=\"w\" position_id=\"3285\">   </span><span class=\"n\" position_id=\"3286\">pk_id</span><span class=\"p\" position_id=\"3287\">,</span>\n</span><span id=\"__span-17-14\" position_id=\"3288\"><a id=\"__codelineno-17-14\" name=\"__codelineno-17-14\" position_id=\"3289\"/><span class=\"w\" position_id=\"3290\">   </span><span class=\"n\" position_id=\"3291\">generate_series</span><span class=\"p\" position_id=\"3292\">(</span><span class=\"n\" position_id=\"3293\">premiere_annee_presence</span><span class=\"p\" position_id=\"3294\">,</span><span class=\"w\" position_id=\"3295\"> </span><span class=\"n\" position_id=\"3296\">derniere_annee_presence</span><span class=\"p\" position_id=\"3297\">,</span><span class=\"mi\" position_id=\"3298\">1</span><span class=\"p\" position_id=\"3299\">)</span><span class=\"w\" position_id=\"3300\"> </span><span class=\"k\" position_id=\"3301\">AS</span><span class=\"w\" position_id=\"3302\"> </span><span class=\"n\" position_id=\"3303\">annee</span>\n</span><span id=\"__span-17-15\" position_id=\"3304\"><a id=\"__codelineno-17-15\" name=\"__codelineno-17-15\" position_id=\"3305\"/><span class=\"w\" position_id=\"3306\">  </span><span class=\"k\" position_id=\"3307\">FROM</span><span class=\"w\" position_id=\"3308\"> </span><span class=\"n\" position_id=\"3309\">insee</span><span class=\"p\" position_id=\"3310\">.</span><span class=\"n\" position_id=\"3311\">presence_clefs_annees</span>\n</span><span id=\"__span-17-16\" position_id=\"3312\"><a id=\"__codelineno-17-16\" name=\"__codelineno-17-16\" position_id=\"3313\"/><span class=\"w\" position_id=\"3314\"> </span><span class=\"p\" position_id=\"3315\">),</span>\n</span><span id=\"__span-17-17\" position_id=\"3316\"><a id=\"__codelineno-17-17\" name=\"__codelineno-17-17\" position_id=\"3317\"/><span class=\"c1\" position_id=\"3318\">-- cross join keys + single year and communal codes</span>\n</span><span id=\"__span-17-18\" position_id=\"3319\"><a id=\"__codelineno-17-18\" name=\"__codelineno-17-18\" position_id=\"3320\"/><span class=\"w\" position_id=\"3321\"> </span><span class=\"n\" position_id=\"3322\">tc</span><span class=\"w\" position_id=\"3323\"> </span><span class=\"k\" position_id=\"3324\">AS</span><span class=\"w\" position_id=\"3325\"> </span><span class=\"p\" position_id=\"3326\">(</span>\n</span><span id=\"__span-17-19\" position_id=\"3327\"><a id=\"__codelineno-17-19\" name=\"__codelineno-17-19\" position_id=\"3328\"/><span class=\"w\" position_id=\"3329\"> </span><span class=\"k\" position_id=\"3330\">SELECT</span>\n</span><span id=\"__span-17-20\" position_id=\"3331\"><a id=\"__codelineno-17-20\" name=\"__codelineno-17-20\" position_id=\"3332\"/><span class=\"w\" position_id=\"3333\">  </span><span class=\"n\" position_id=\"3334\">cc</span><span class=\"p\" position_id=\"3335\">.</span><span class=\"n\" position_id=\"3336\">code_admin</span><span class=\"w\" position_id=\"3337\"> </span><span class=\"k\" position_id=\"3338\">AS</span><span class=\"w\" position_id=\"3339\"> </span><span class=\"n\" position_id=\"3340\">code_com</span><span class=\"p\" position_id=\"3341\">,</span>\n</span><span id=\"__span-17-21\" position_id=\"3342\"><a id=\"__codelineno-17-21\" name=\"__codelineno-17-21\" position_id=\"3343\"/><span class=\"w\" position_id=\"3344\">  </span><span class=\"n\" position_id=\"3345\">cl</span><span class=\"p\" position_id=\"3346\">.</span><span class=\"n\" position_id=\"3347\">annee</span><span class=\"w\" position_id=\"3348\"> </span><span class=\"k\" position_id=\"3349\">AS</span><span class=\"w\" position_id=\"3350\"> </span><span class=\"n\" position_id=\"3351\">annee</span><span class=\"p\" position_id=\"3352\">,</span>\n</span><span id=\"__span-17-22\" position_id=\"3353\"><a id=\"__codelineno-17-22\" name=\"__codelineno-17-22\" position_id=\"3354\"/><span class=\"w\" position_id=\"3355\">  </span><span class=\"n\" position_id=\"3356\">cl</span><span class=\"p\" position_id=\"3357\">.</span><span class=\"n\" position_id=\"3358\">pk_id</span><span class=\"w\" position_id=\"3359\"> </span><span class=\"k\" position_id=\"3360\">AS</span><span class=\"w\" position_id=\"3361\"> </span><span class=\"n\" position_id=\"3362\">pk_id</span>\n</span><span id=\"__span-17-23\" position_id=\"3363\"><a id=\"__codelineno-17-23\" name=\"__codelineno-17-23\" position_id=\"3364\"/><span class=\"w\" position_id=\"3365\"> </span><span class=\"k\" position_id=\"3366\">FROM</span><span class=\"w\" position_id=\"3367\"> </span><span class=\"n\" position_id=\"3368\">codes_com</span><span class=\"w\" position_id=\"3369\"> </span><span class=\"k\" position_id=\"3370\">AS</span><span class=\"w\" position_id=\"3371\"> </span><span class=\"n\" position_id=\"3372\">cc</span>\n</span><span id=\"__span-17-24\" position_id=\"3373\"><a id=\"__codelineno-17-24\" name=\"__codelineno-17-24\" position_id=\"3374\"/><span class=\"w\" position_id=\"3375\"> </span><span class=\"k\" position_id=\"3376\">CROSS</span><span class=\"w\" position_id=\"3377\"> </span><span class=\"k\" position_id=\"3378\">JOIN</span><span class=\"w\" position_id=\"3379\"> </span><span class=\"n\" position_id=\"3380\">clefs</span><span class=\"w\" position_id=\"3381\"> </span><span class=\"k\" position_id=\"3382\">AS</span><span class=\"w\" position_id=\"3383\"> </span><span class=\"n\" position_id=\"3384\">cl</span>\n</span><span id=\"__span-17-25\" position_id=\"3385\"><a id=\"__codelineno-17-25\" name=\"__codelineno-17-25\" position_id=\"3386\"/><span class=\"w\" position_id=\"3387\"> </span><span class=\"p\" position_id=\"3388\">),</span>\n</span><span id=\"__span-17-26\" position_id=\"3389\"><a id=\"__codelineno-17-26\" name=\"__codelineno-17-26\" position_id=\"3390\"/><span class=\"c1\" position_id=\"3391\">-- Final selection with data recovery</span>\n</span><span id=\"__span-17-27\" position_id=\"3392\"><a id=\"__codelineno-17-27\" name=\"__codelineno-17-27\" position_id=\"3393\"/><span class=\"w\" position_id=\"3394\"> </span><span class=\"k\" position_id=\"3395\">final</span><span class=\"w\" position_id=\"3396\"> </span><span class=\"k\" position_id=\"3397\">AS</span><span class=\"w\" position_id=\"3398\"> </span><span class=\"p\" position_id=\"3399\">(</span>\n</span><span id=\"__span-17-28\" position_id=\"3400\"><a id=\"__codelineno-17-28\" name=\"__codelineno-17-28\" position_id=\"3401\"/><span class=\"w\" position_id=\"3402\"> </span><span class=\"k\" position_id=\"3403\">SELECT</span>\n</span><span id=\"__span-17-29\" position_id=\"3404\"><a id=\"__codelineno-17-29\" name=\"__codelineno-17-29\" position_id=\"3405\"/><span class=\"w\" position_id=\"3406\">  </span><span class=\"n\" position_id=\"3407\">tc</span><span class=\"p\" position_id=\"3408\">.</span><span class=\"n\" position_id=\"3409\">code_com</span><span class=\"p\" position_id=\"3410\">,</span>\n</span><span id=\"__span-17-30\" position_id=\"3411\"><a id=\"__codelineno-17-30\" name=\"__codelineno-17-30\" position_id=\"3412\"/><span class=\"w\" position_id=\"3413\">  </span><span class=\"n\" position_id=\"3414\">tc</span><span class=\"p\" position_id=\"3415\">.</span><span class=\"n\" position_id=\"3416\">annee</span><span class=\"p\" position_id=\"3417\">,</span>\n</span><span id=\"__span-17-31\" position_id=\"3418\"><a id=\"__codelineno-17-31\" name=\"__codelineno-17-31\" position_id=\"3419\"/><span class=\"w\" position_id=\"3420\">  </span><span class=\"n\" position_id=\"3421\">co</span><span class=\"p\" position_id=\"3422\">.</span><span class=\"n\" position_id=\"3423\">fk_base</span><span class=\"p\" position_id=\"3424\">,</span>\n</span><span id=\"__span-17-32\" position_id=\"3425\"><a id=\"__codelineno-17-32\" name=\"__codelineno-17-32\" position_id=\"3426\"/><span class=\"w\" position_id=\"3427\">  </span><span class=\"n\" position_id=\"3428\">co</span><span class=\"p\" position_id=\"3429\">.</span><span class=\"n\" position_id=\"3430\">clef_json</span><span class=\"p\" position_id=\"3431\">,</span>\n</span><span id=\"__span-17-33\" position_id=\"3432\"><a id=\"__codelineno-17-33\" name=\"__codelineno-17-33\" position_id=\"3433\"/><span class=\"w\" position_id=\"3434\">  </span><span class=\"k\" position_id=\"3435\">CASE</span>\n</span><span id=\"__span-17-34\" position_id=\"3436\"><a id=\"__codelineno-17-34\" name=\"__codelineno-17-34\" position_id=\"3437\"/><span class=\"w\" position_id=\"3438\">   </span><span class=\"k\" position_id=\"3439\">WHEN</span><span class=\"w\" position_id=\"3440\"> </span><span class=\"p\" position_id=\"3441\">(</span><span class=\"n\" position_id=\"3442\">d</span><span class=\"p\" position_id=\"3443\">.</span><span class=\"n\" position_id=\"3444\">donnees</span><span class=\"w\" position_id=\"3445\"> </span><span class=\"o\" position_id=\"3446\">-&gt;&gt;</span><span class=\"w\" position_id=\"3447\"> </span><span class=\"n\" position_id=\"3448\">clef_json</span><span class=\"p\" position_id=\"3449\">)</span><span class=\"w\" position_id=\"3450\"> </span><span class=\"k\" position_id=\"3451\">IN</span><span class=\"w\" position_id=\"3452\"> </span><span class=\"p\" position_id=\"3453\">(</span><span class=\"s1\" position_id=\"3454\">&apos;&apos;</span><span class=\"p\" position_id=\"3455\">,</span><span class=\"s1\" position_id=\"3456\">&apos;null&apos;</span><span class=\"p\" position_id=\"3457\">,</span><span class=\"s1\" position_id=\"3458\">&apos;s&apos;</span><span class=\"p\" position_id=\"3459\">,</span><span class=\"s1\" position_id=\"3460\">&apos;nd&apos;</span><span class=\"p\" position_id=\"3461\">)</span><span class=\"w\" position_id=\"3462\"> </span><span class=\"k\" position_id=\"3463\">THEN</span><span class=\"w\" position_id=\"3464\"> </span><span class=\"k\" position_id=\"3465\">NULL</span>\n</span><span id=\"__span-17-35\" position_id=\"3466\"><a id=\"__codelineno-17-35\" name=\"__codelineno-17-35\" position_id=\"3467\"/><span class=\"w\" position_id=\"3468\">   </span><span class=\"k\" position_id=\"3469\">ELSE</span><span class=\"w\" position_id=\"3470\"> </span><span class=\"p\" position_id=\"3471\">((</span><span class=\"n\" position_id=\"3472\">d</span><span class=\"p\" position_id=\"3473\">.</span><span class=\"n\" position_id=\"3474\">donnees</span><span class=\"w\" position_id=\"3475\"> </span><span class=\"o\" position_id=\"3476\">-&gt;&gt;</span><span class=\"w\" position_id=\"3477\"> </span><span class=\"n\" position_id=\"3478\">clef_json</span><span class=\"p\" position_id=\"3479\">)::</span><span class=\"nb\" position_id=\"3480\">real</span><span class=\"p\" position_id=\"3481\">)</span>\n</span><span id=\"__span-17-36\" position_id=\"3482\"><a id=\"__codelineno-17-36\" name=\"__codelineno-17-36\" position_id=\"3483\"/><span class=\"w\" position_id=\"3484\">  </span><span class=\"k\" position_id=\"3485\">END</span><span class=\"w\" position_id=\"3486\"> </span><span class=\"k\" position_id=\"3487\">AS</span><span class=\"w\" position_id=\"3488\"> </span><span class=\"n\" position_id=\"3489\">valeur</span>\n</span><span id=\"__span-17-37\" position_id=\"3490\"><a id=\"__codelineno-17-37\" name=\"__codelineno-17-37\" position_id=\"3491\"/><span class=\"w\" position_id=\"3492\"> </span><span class=\"k\" position_id=\"3493\">FROM</span><span class=\"w\" position_id=\"3494\"> </span><span class=\"n\" position_id=\"3495\">tc</span>\n</span><span id=\"__span-17-38\" position_id=\"3496\"><a id=\"__codelineno-17-38\" name=\"__codelineno-17-38\" position_id=\"3497\"/><span class=\"w\" position_id=\"3498\"> </span><span class=\"k\" position_id=\"3499\">JOIN</span>\n</span><span id=\"__span-17-39\" position_id=\"3500\"><a id=\"__codelineno-17-39\" name=\"__codelineno-17-39\" position_id=\"3501\"/><span class=\"w\" position_id=\"3502\">  </span><span class=\"n\" position_id=\"3503\">insee</span><span class=\"p\" position_id=\"3504\">.</span><span class=\"n\" position_id=\"3505\">donnees_communes</span><span class=\"w\" position_id=\"3506\"> </span><span class=\"k\" position_id=\"3507\">AS</span><span class=\"w\" position_id=\"3508\"> </span><span class=\"n\" position_id=\"3509\">d</span><span class=\"w\" position_id=\"3510\"> </span><span class=\"k\" position_id=\"3511\">ON</span><span class=\"w\" position_id=\"3512\"> </span><span class=\"p\" position_id=\"3513\">(</span><span class=\"n\" position_id=\"3514\">tc</span><span class=\"p\" position_id=\"3515\">.</span><span class=\"n\" position_id=\"3516\">code_com</span><span class=\"w\" position_id=\"3517\"> </span><span class=\"o\" position_id=\"3518\">=</span><span class=\"w\" position_id=\"3519\"> </span><span class=\"n\" position_id=\"3520\">d</span><span class=\"p\" position_id=\"3521\">.</span><span class=\"n\" position_id=\"3522\">code_commune</span><span class=\"w\" position_id=\"3523\"> </span><span class=\"k\" position_id=\"3524\">AND</span><span class=\"w\" position_id=\"3525\"> </span><span class=\"n\" position_id=\"3526\">tc</span><span class=\"p\" position_id=\"3527\">.</span><span class=\"n\" position_id=\"3528\">annee</span><span class=\"w\" position_id=\"3529\"> </span><span class=\"o\" position_id=\"3530\">=</span><span class=\"w\" position_id=\"3531\"> </span><span class=\"n\" position_id=\"3532\">d</span><span class=\"p\" position_id=\"3533\">.</span><span class=\"n\" position_id=\"3534\">annee</span><span class=\"p\" position_id=\"3535\">)</span>\n</span><span id=\"__span-17-40\" position_id=\"3536\"><a id=\"__codelineno-17-40\" name=\"__codelineno-17-40\" position_id=\"3537\"/><span class=\"w\" position_id=\"3538\"> </span><span class=\"k\" position_id=\"3539\">LEFT</span><span class=\"w\" position_id=\"3540\"> </span><span class=\"k\" position_id=\"3541\">JOIN</span>\n</span><span id=\"__span-17-41\" position_id=\"3542\"><a id=\"__codelineno-17-41\" name=\"__codelineno-17-41\" position_id=\"3543\"/><span class=\"w\" position_id=\"3544\">  </span><span class=\"n\" position_id=\"3545\">insee</span><span class=\"p\" position_id=\"3546\">.</span><span class=\"n\" position_id=\"3547\">presence_clefs_annees</span><span class=\"w\" position_id=\"3548\"> </span><span class=\"k\" position_id=\"3549\">AS</span><span class=\"w\" position_id=\"3550\"> </span><span class=\"n\" position_id=\"3551\">co</span><span class=\"w\" position_id=\"3552\"> </span><span class=\"k\" position_id=\"3553\">ON</span><span class=\"w\" position_id=\"3554\"> </span><span class=\"n\" position_id=\"3555\">tc</span><span class=\"p\" position_id=\"3556\">.</span><span class=\"n\" position_id=\"3557\">pk_id</span><span class=\"w\" position_id=\"3558\"> </span><span class=\"o\" position_id=\"3559\">=</span><span class=\"w\" position_id=\"3560\"> </span><span class=\"n\" position_id=\"3561\">co</span><span class=\"p\" position_id=\"3562\">.</span><span class=\"n\" position_id=\"3563\">pk_id</span>\n</span><span id=\"__span-17-42\" position_id=\"3564\"><a id=\"__codelineno-17-42\" name=\"__codelineno-17-42\" position_id=\"3565\"/><span class=\"w\" position_id=\"3566\"> </span><span class=\"k\" position_id=\"3567\">ORDER</span><span class=\"w\" position_id=\"3568\"> </span><span class=\"k\" position_id=\"3569\">BY</span><span class=\"w\" position_id=\"3570\"> </span><span class=\"n\" position_id=\"3571\">tc</span><span class=\"p\" position_id=\"3572\">.</span><span class=\"n\" position_id=\"3573\">annee</span><span class=\"p\" position_id=\"3574\">,</span><span class=\"w\" position_id=\"3575\"> </span><span class=\"n\" position_id=\"3576\">co</span><span class=\"p\" position_id=\"3577\">.</span><span class=\"n\" position_id=\"3578\">fk_base</span><span class=\"p\" position_id=\"3579\">,</span><span class=\"w\" position_id=\"3580\"> </span><span class=\"n\" position_id=\"3581\">co</span><span class=\"p\" position_id=\"3582\">.</span><span class=\"n\" position_id=\"3583\">clef_json</span><span class=\"p\" position_id=\"3584\">,</span><span class=\"w\" position_id=\"3585\"> </span><span class=\"n\" position_id=\"3586\">tc</span><span class=\"p\" position_id=\"3587\">.</span><span class=\"n\" position_id=\"3588\">code_com</span>\n</span><span id=\"__span-17-43\" position_id=\"3589\"><a id=\"__codelineno-17-43\" name=\"__codelineno-17-43\" position_id=\"3590\"/><span class=\"w\" position_id=\"3591\"> </span><span class=\"p\" position_id=\"3592\">)</span>\n</span><span id=\"__span-17-44\" position_id=\"3593\"><a id=\"__codelineno-17-44\" name=\"__codelineno-17-44\" position_id=\"3594\"/><span class=\"k\" position_id=\"3595\">SELECT</span><span class=\"w\" position_id=\"3596\"> </span><span class=\"o\" position_id=\"3597\">*</span><span class=\"w\" position_id=\"3598\"> </span><span class=\"k\" position_id=\"3599\">FROM</span><span class=\"w\" position_id=\"3600\"> </span><span class=\"k\" position_id=\"3601\">final</span><span class=\"w\" position_id=\"3602\"> </span><span class=\"k\" position_id=\"3603\">WHERE</span><span class=\"w\" position_id=\"3604\"> </span><span class=\"n\" position_id=\"3605\">valeur</span><span class=\"w\" position_id=\"3606\"> </span><span class=\"k\" position_id=\"3607\">IS</span><span class=\"w\" position_id=\"3608\"> </span><span class=\"k\" position_id=\"3609\">NOT</span><span class=\"w\" position_id=\"3610\"> </span><span class=\"k\" position_id=\"3611\">NULL</span><span class=\"p\" position_id=\"3612\">;</span>\n</span></code></pre></div></td></tr></tbody></table>", "x": "/html/body/div[3]/main/div/div[3]/article/div[19]/table"}]}, "tags": ["table"], "label": "table", "web_segment_id": 91, "global_sentence_id": 188, "edu_l1_label": "EDU_O"}, {"txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/3ZnhyE4uY2Ka3TpRGr2yRYwy.png", "language": "english", "position": {"atoms": [{"position_id": 3615, "txt": "<img https://wcd-image-bucket-test.oss-cn-zhangjiakou.aliyuncs.com/raw/3ZnhyE4uY2Ka3TpRGr2yRYwy.png", "x": "/html/body/div[3]/main/div/div[3]/article/p[54]/a/img"}]}, "tags": ["img"], "label": "figure", "web_segment_id": 92, "global_sentence_id": 189, "edu_l1_label": "EDU_O"}, {"txt": "Please note that creating or refreshing this materialized view may take some time if you've stored a lot of data (1 hour in my case for the 6 sections from 2015 to 2021).", "language": "english", "position": {"atoms": [{"position_id": 4890, "txt": "Please note that creating or refreshing this materialized view may take some time if you've stored a lot of data (1 hour in my case for the 6 sections from 2015 to 2021).", "x": "/html/body/div[3]/main/div/div[3]/article/p[55]"}]}, "tags": [], "label": "content", "web_segment_id": 93, "global_sentence_id": 190, "edu_l1_label": "IOS"}, {"txt": "Finally, in the spirit of living with the times and not like an old cave bear, we're going to convert this materialized view into a parquet file.", "language": "english", "position": {"atoms": [{"position_id": 4892, "txt": "Finally, in the spirit of living with the times and not like an old cave bear, we're going to convert this materialized view into a ", "x": "/html/body/div[3]/main/div/div[3]/article/p[56]"}, {"position_id": 4894, "txt": "parquet file", "x": "/html/body/div[3]/main/div/div[3]/article/p[56]/a"}, {"position_id": 4896, "txt": ".", "x": "/html/body/div[3]/main/div/div[3]/article/p[56]/a"}]}, "tags": [], "label": "content", "web_segment_id": 94, "global_sentence_id": 191, "edu_l1_label": "IOS"}, {"txt": " And for that, we're going to use GDAL, which is truly incredible.", "language": "english", "position": {"atoms": [{"position_id": 4897, "txt": " And for that, we're going to use GDAL, which is truly incredible.", "x": "/html/body/div[3]/main/div/div[3]/article/p[56]/a"}]}, "tags": [], "label": "content", "web_segment_id": 94, "global_sentence_id": 192, "edu_l1_label": "IOS"}, {"txt": "View export in parquet formatogr2ogr-ofparquetdonnees_insee.parquetPG:\"", "language": "english", "position": {"atoms": [{"position_id": 4899, "txt": "View export in parquet format", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/span"}, {"position_id": 4901, "txt": "ogr2ogr", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/a"}, {"position_id": 4903, "txt": "-of", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/span[1]"}, {"position_id": 4905, "txt": "parquet", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/span[2]"}, {"position_id": 4907, "txt": "donnees_insee.parquet", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/span[3]"}, {"position_id": 4909, "txt": "PG:", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/span[4]"}, {"position_id": 4911, "txt": "\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/span[5]"}]}, "tags": [], "label": "code", "web_segment_id": 95, "global_sentence_id": 193, "edu_l1_label": "IOS"}, {"txt": "dbname='insee' schema='insee' tables='donnees_communes_olap' user='user_name' password='your_password'\"", "language": "english", "position": {"atoms": [{"position_id": 4912, "txt": "dbname='insee' schema='insee' tables='donnees_communes_olap' user='user_name' password='your_password'\"", "x": "/html/body/div[3]/main/div/div[3]/article/div[20]/pre/code/span/span[5]"}]}, "tags": [], "label": "code", "web_segment_id": 95, "global_sentence_id": 194, "edu_l1_label": "EDU_O"}, {"txt": "And then you can put the file on a cloud space, like here!", "language": "english", "position": {"atoms": [{"position_id": 4914, "txt": "And then you can put the file on a cloud space, like ", "x": "/html/body/div[3]/main/div/div[3]/article/p[57]"}, {"position_id": 4916, "txt": "here", "x": "/html/body/div[3]/main/div/div[3]/article/p[57]/a"}, {"position_id": 4918, "txt": "!", "x": "/html/body/div[3]/main/div/div[3]/article/p[57]/a"}]}, "tags": [], "label": "content", "web_segment_id": 96, "global_sentence_id": 195, "edu_l1_label": "IOS"}, {"txt": " You can then get out your best Linkedin publication generator, which will put lots of cute emojis, and show off on social networks (imagine that 90% of Linkedin content has to be made with these things, which are able to generate publications explaining that one of the few advantages of shape over geopackage is that it's a multi-file format, all in a very confident tone).", "language": "english", "position": {"atoms": [{"position_id": 4919, "txt": " You can then get out your best Linkedin publication generator, which will put lots of cute emojis, and show off on social networks (imagine that 90% of Linkedin content has to be made with these things, which are able to generate publications explaining that one of the few advantages of shape over geopackage is that it's a multi-file format, all in a very confident tone).", "x": "/html/body/div[3]/main/div/div[3]/article/p[57]/a"}]}, "tags": [], "label": "content", "web_segment_id": 96, "global_sentence_id": 196, "edu_l1_label": "IOS"}, {"txt": "Share it: ", "language": "english", "position": {"atoms": [{"position_id": 4921, "txt": "Share it: ", "x": "/html/body/div[3]/main/div/div[3]/article/p[58]"}]}, "tags": [], "label": "O", "web_segment_id": 97, "global_sentence_id": 197, "edu_l1_label": "EDU_O"}, {"txt": "Was this page helpful?", "language": "english", "position": {"atoms": [{"position_id": 4923, "txt": "Was this page helpful?", "x": "/html/body/div[3]/main/div/div[3]/article/form/fieldset/legend"}]}, "tags": [], "label": "O", "web_segment_id": 1, "global_sentence_id": 198, "edu_l1_label": "EDU_O"}, {"txt": "Thanks for your feedback!", "language": "english", "position": {"atoms": [{"position_id": 4925, "txt": "Thanks for your feedback!", "x": "/html/body/div[3]/main/div/div[3]/article/form/fieldset/div/div[2]/div[1]"}]}, "tags": [], "label": "O", "web_segment_id": 98, "global_sentence_id": 199, "edu_l1_label": "EDU_O"}, {"txt": "Thanks for your feedback!", "language": "english", "position": {"atoms": [{"position_id": 4927, "txt": "Thanks for your feedback!", "x": "/html/body/div[3]/main/div/div[3]/article/form/fieldset/div/div[2]/div[2]"}]}, "tags": [], "label": "O", "web_segment_id": 99, "global_sentence_id": 200, "edu_l1_label": "EDU_O"}, {"txt": "Comments", "language": "english", "position": {"atoms": [{"position_id": 4929, "txt": "Comments", "x": "/html/body/div[3]/main/div/div[3]/article/h2[8]"}]}, "tags": ["h2"], "label": "O", "web_segment_id": 100, "global_sentence_id": 201, "edu_l1_label": "EDU_O"}], "type": "WEB"}
# Working with JSON in PostgreSQL#
## JSON for beginners#
## PostgreSQL's json types#
## Indexes#
## Table creation#
## Data insertion and retrieval#
### Simple example#
### With nested JSON#
#### Data recovery#
## Let's tackle the census#
## Now what ? What do we do with this ?#