{"id":156,"date":"2023-03-15T17:19:31","date_gmt":"2023-03-15T17:19:31","guid":{"rendered":"https:\/\/jirivalasek.com\/?page_id=156"},"modified":"2023-08-19T07:12:39","modified_gmt":"2023-08-19T07:12:39","slug":"sql-projekt","status":"publish","type":"page","link":"https:\/\/jirivalasek.com\/?page_id=156","title":{"rendered":"SQL"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"156\" class=\"elementor elementor-156\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1a1fa55 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1a1fa55\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6c30c04\" data-id=\"6c30c04\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-bbb9f95 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bbb9f95\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-85e5656\" data-id=\"85e5656\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ae615d2 elementor-widget elementor-widget-text-editor\" data-id=\"ae615d2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4 style=\"text-align: center;\"><strong>FAKTORY OVLIV\u0147UJ\u00cdC\u00cd \u0160\u00cd\u0158EN\u00cd KORONAVIRU<\/strong><\/h4><p style=\"text-align: center;\">P\u0159\u00edprava dat pro ur\u010dov\u00e1n\u00ed faktor\u016f ovliv\u0148uj\u00edc\u00edch \u0161\u00ed\u0159en\u00ed koronaviru na \u00farovni jednotliv\u00fdch st\u00e1t\u016f.<\/p><p style=\"text-align: center;\">Pou\u017eit\u00e9 technologie: DBeaver, SQL, Tableau.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2f6072e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2f6072e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e850f99\" data-id=\"e850f99\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-27ffc7c elementor-section-height-min-height elementor-section-boxed elementor-section-height-default\" data-id=\"27ffc7c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-fd5c426\" data-id=\"fd5c426\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bce126c elementor-widget elementor-widget-text-editor\" data-id=\"bce126c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>V\u00fdsledn\u00e1 data budou panelov\u00e1, kl\u00ed\u010de budou st\u00e1t\u00a0a den.<\/p><p>Pro ur\u010den\u00ed hlavn\u00edch faktor\u016f \u0161\u00ed\u0159en\u00ed koronaviru je pot\u0159eba krom\u011b denn\u00edch n\u00e1r\u016fst\u016f naka\u017een\u00fdch p\u0159i\u0159adit i po\u010dty proveden\u00fdch test\u016f a po\u010det obyvatel dan\u00e9ho st\u00e1tu. Z t\u011bchto t\u0159\u00ed prom\u011bnn\u00fdch je potom mo\u017en\u00e9 vytvo\u0159it vhodnou vysv\u011btlovanou prom\u011bnnou. Denn\u00ed po\u010dty naka\u017een\u00fdch se budou d\u00e1le vysv\u011btlovat pomoc\u00ed prom\u011bnn\u00fdch n\u011bkolika typ\u016f. Ka\u017ed\u00fd sloupec v tabulce bude p\u0159edstavovat jednu prom\u011bnnou. Chceme z\u00edskat n\u00e1sleduj\u00edc\u00ed sloupce:<\/p><ol><li>\u010casov\u00e9 prom\u011bnn\u00e9:<ul><li>bin\u00e1rn\u00ed prom\u011bnn\u00e1 pro v\u00edkend \/ pracovn\u00ed den,<\/li><li>ro\u010dn\u00ed obdob\u00ed dan\u00e9ho dne (zak\u00f3dovat jako 0 a\u017e 3).<\/li><\/ul><\/li><li>Prom\u011bnn\u00e9 specifick\u00e9 pro dan\u00fd st\u00e1t:<ul><li>hustota zalidn\u011bn\u00ed &#8211; ve st\u00e1tech s vy\u0161\u0161\u00ed hustotou zalidn\u011bn\u00ed se n\u00e1kaza m\u016f\u017ee \u0161\u00ed\u0159it rychleji,<\/li><li>HDP na obyvatele &#8211; pou\u017eijeme jako indik\u00e1tor ekonomick\u00e9 vysp\u011blosti st\u00e1tu,<\/li><li>GINI koeficient &#8211; m\u00e1 majetkov\u00e1 nerovnost vliv na \u0161\u00ed\u0159en\u00ed koronaviru?<\/li><li>d\u011btsk\u00e1 \u00famrtnost &#8211; pou\u017eijeme jako indik\u00e1tor kvality zdravotnictv\u00ed,<\/li><li>medi\u00e1n v\u011bku obyvatel v roce 2018 &#8211; st\u00e1ty se star\u0161\u00edm obyvatelstvem mohou b\u00fdt posti\u017eeny v\u00edce,<\/li><li>pod\u00edly jednotliv\u00fdch n\u00e1bo\u017eenstv\u00ed &#8211; pou\u017eijeme jako proxy prom\u011bnnou pro kulturn\u00ed specifika. Pro ka\u017ed\u00e9 n\u00e1bo\u017eenstv\u00ed v dan\u00e9m st\u00e1t\u011b procentn\u00ed pod\u00edl jeho p\u0159\u00edslu\u0161n\u00edk\u016f na celkov\u00e9m obyvatelstvu,<\/li><li>rozd\u00edl mezi o\u010dek\u00e1vanou dobou do\u017eit\u00ed v roce 1965 a v roce 2015 &#8211; st\u00e1ty, ve kter\u00fdch prob\u011bhl rychl\u00fd rozvoj mohou reagovat jinak ne\u017e zem\u011b, kter\u00e9 jsou vysp\u011bl\u00e9 u\u017e del\u0161\u00ed dobu.<\/li><\/ul><\/li><li>Po\u010das\u00ed (ovliv\u0148uje chov\u00e1n\u00ed lid\u00ed a tak\u00e9 schopnost \u0161\u00ed\u0159en\u00ed viru):<ul><li>pr\u016fm\u011brn\u00e1 denn\u00ed (nikoli no\u010dn\u00ed!) teplota,<\/li><li>po\u010det hodin v dan\u00e9m dni, kdy byly sr\u00e1\u017eky nenulov\u00e9,<\/li><li>maxim\u00e1ln\u00ed s\u00edla v\u011btru v n\u00e1razech b\u011bhem dne.<\/li><\/ul><\/li><\/ol><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9bff0b3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9bff0b3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8a625eb\" data-id=\"8a625eb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-556579a elementor-section-height-min-height elementor-section-boxed elementor-section-height-default\" data-id=\"556579a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-bbe340c\" data-id=\"bbe340c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-aab7108 elementor-widget elementor-widget-text-editor\" data-id=\"aab7108\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h1 style=\"text-align: center;\"><strong>V\u00ddSTUP<\/strong><\/h1>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e26d402 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e26d402\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-23ee957\" data-id=\"23ee957\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ba6f4af elementor-widget elementor-widget-text-editor\" data-id=\"ba6f4af\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Uk\u00e1zka z v\u00fdsledn\u00fdch panelov\u00fdch dat.<\/p><p>V\u00fdsledn\u00e1 tabulka obsahuje \u00fadaje v jednotliv\u00fdch zem\u00edch platn\u00fdch dan\u00fd den.<\/p><p>Tabulka m\u00e1 94 142 \u0159\u00e1dk\u016f.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5c63892 elementor-section-height-min-height elementor-section-boxed elementor-section-height-default elementor-section-items-middle\" data-id=\"5c63892\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fae42d1\" data-id=\"fae42d1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-33a3dd4 elementor-widget elementor-widget-image\" data-id=\"33a3dd4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"459\" src=\"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?fit=800%2C459&amp;ssl=1\" class=\"attachment-large size-large wp-image-600\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?w=1476&amp;ssl=1 1476w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?resize=300%2C172&amp;ssl=1 300w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?resize=1024%2C588&amp;ssl=1 1024w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?resize=768%2C441&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4795906 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4795906\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-44740de\" data-id=\"44740de\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-99c4ed3 elementor-widget elementor-widget-text-editor\" data-id=\"99c4ed3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Jedna z mo\u017en\u00fdch vizualizac\u00ed \u0161\u00ed\u0159en\u00ed koronaviru v Evropsk\u00fdch zem\u00edch.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c152c7d elementor-section-height-min-height elementor-section-boxed elementor-section-height-default elementor-section-items-middle\" data-id=\"c152c7d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-813ab9e\" data-id=\"813ab9e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3a7678f elementor-widget elementor-widget-image\" data-id=\"3a7678f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"420\" src=\"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?fit=800%2C420&amp;ssl=1\" class=\"attachment-large size-large wp-image-604\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?w=1689&amp;ssl=1 1689w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?resize=300%2C158&amp;ssl=1 300w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?resize=1024%2C538&amp;ssl=1 1024w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?resize=768%2C403&amp;ssl=1 768w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?resize=1536%2C807&amp;ssl=1 1536w, https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/covid_overview.png?w=1600&amp;ssl=1 1600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-056256c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"056256c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b3e4015\" data-id=\"b3e4015\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-1153cf4 elementor-section-height-min-height elementor-section-boxed elementor-section-height-default\" data-id=\"1153cf4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-5169b7e\" data-id=\"5169b7e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-016b152 elementor-widget elementor-widget-text-editor\" data-id=\"016b152\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h1 style=\"text-align: center;\"><strong>POSTUP<\/strong><\/h1>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5112916 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5112916\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d0fbaf5\" data-id=\"d0fbaf5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d08565e elementor-widget elementor-widget-text-editor\" data-id=\"d08565e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h6><em># Zaklad dat budou tabulky covid19_basic_differences a covid19_tests.<\/em><br \/><em># Seznam zemi v covid19_basic_differences se musi shodovat se seznamem z covid19_tests.<\/em><br \/><em># Nektere nazvy zemi se v tabulkach lisi.<\/em><\/h6><h6><em># Zeme co jsou v covid tests, ale ne v differences:<\/em><\/h6><p>create view v_zeme_v_tests_ale_ne_v_diff as<br \/>select ct.country <br \/>from covid19_tests ct <br \/>except<br \/>select cbd.country <br \/>from covid19_basic_differences cbd ;<\/p><h6># Zeme co jsou v differences, ale ne v tests:<\/h6><p><br \/>create view v_zeme_v_diff_ale_ne_v_tests as<br \/>select cbd.country <br \/>from covid19_basic_differences cbd<br \/>except<br \/>select ct.country <br \/>from covid19_tests ct ;<\/p><h6># Tyto zeme prejmenovat v tabulce tests:<\/h6><p><br \/>&#8212;- Czech republic = Czechia<br \/>&#8212;- Myanamar = Burma<br \/>&#8212;- South Korea = Korea, South<br \/>&#8212;- Taiwan= Taiwan*<br \/>&#8212;- United States = US<\/p><p>create table t_covid_tests_uprava_zemi as<br \/>select * from covid19_tests ct ;<\/p><p>update t_covid_tests_uprava_zemi set country = &#8216;Czechia&#8217; where ISO = &#8216;CZE&#8217;;<br \/>update t_covid_tests_uprava_zemi set country = &#8216;Burma&#8217; where ISO = &#8216;MMR&#8217;;<br \/>update t_covid_tests_uprava_zemi set country = &#8216;Korea, South&#8217; where ISO = &#8216;KOR&#8217;;<br \/>update t_covid_tests_uprava_zemi set country = &#8216;Taiwan*&#8217; where ISO = &#8216;TWN&#8217;;<br \/>update t_covid_tests_uprava_zemi set country = &#8216;US&#8217; where ISO = &#8216;USA&#8217;;<\/p><h6>#Vytvor tabulku, kde bude zaznam o potvrzenych pripadech a testech. Ke vsem zaznamenavanym dnum potvrzenych pripadu nejsou zaznamy o testech:<\/h6><p>\u00a0<\/p><p>create table t_covid_confirmed_tests as<br \/>select <br \/>cbd.country , cbd.`date` , cbd.confirmed , tctuz.tests_performed <br \/>from covid19_basic_differences cbd <br \/>left join t_covid_tests_uprava_zemi tctuz<br \/>on cbd.country = tctuz.country and cbd.`date` = tctuz.`date`<br \/>order by country asc;<\/p><h6># Tabulka s poslednim dostupnym udajem o detske umrtnosti:<\/h6><p><br \/>create table t_mort5 as<br \/>select <br \/>country , mortaliy_under5 <br \/>from economies e<br \/>where mortaliy_under5 is not null<br \/>group by country <br \/>order by country asc;<\/p><h6># Udaje o HDP na obyvatele chci za 2020, nebo 2019. Starsi nechci.<br \/># HDP na obyvatele za 2020:<\/h6><p><br \/>create table t_gdp_per_capita<br \/>select <br \/>country , <br \/>GDP , <br \/>round (gdp \/ population, 2) as gdp_per_capita<br \/>from economies e <br \/>where `year` = &#8216;2020&#8217;<br \/>order by country asc;<\/p><h6># HPD na obyvatele za rok 2019 u zemi, kde chybi udaj za rok 2020:<\/h6><p><br \/>create table t_gdp_per_capita_2019<br \/>select <br \/>z.country , <br \/>e.GDP , <br \/>round (e.gdp \/ e.population, 2) as gdp_per_capita<br \/>from economies e <br \/>join <br \/>(select country <br \/>from economies e2 <br \/>where `year`= &#8216;2020&#8217; and gdp is null) as z<br \/>on z.country = e.country <br \/>where e.`year` = &#8216;2019&#8217; and e.GDP is not null;<\/p><h6># Ted updatuju tabulku t_gdp_per_capita tam, kde chybi udaje za 2020 a doplnim zde udaj za 2019:<\/h6><p><br \/>update t_gdp_per_capita as base <br \/>inner join t_gdp_per_capita_2019 as a <br \/>on base.country = a.country <br \/>set base.gdp_per_capita = a.gdp_per_capita <br \/>where base.gdp_per_capita is null <br \/>and a.gdp_per_capita is not null;<\/p><h6># GINI: Nejmladsi dostupna hodnota GINI, ale zaroven ne starsi, nez z roku 2010:<\/h6><p><br \/>create table t_gini as<br \/>select <br \/>country ,<br \/>`year` , <br \/>gini as GINI<br \/>from economies e <br \/>where year &gt;= 2010 and gini is not null<br \/>group by country <br \/>order by country asc;<\/p><h6># Population density vypocitam. V tabulce countries se hodnota population_density u nekterych zemi lisi od vypoctene hodnoty z population\/surface_area:<\/h6><h6><br \/># Vypocitavam jen z udaju dostupnych:<\/h6><p><br \/>create table t_pop_density<br \/>select <br \/>country , <br \/>round (population \/ surface_area,4) as population_density<br \/>from countries c <br \/>where population != 0 and surface_area != 0<br \/>order by country asc;<\/p><h6># Podily nabozenstvi. Pocitam podil populace na nabozenstvi \/ suma populace dle zeme. Vse pocitam z tabulky religions:<\/h6><p><br \/>create table t_religion_share as<br \/>select <br \/>base.country, <br \/>base.religion, <br \/>base.population, <br \/>a.total_population,<br \/>round ((base.population\/a.total_population)*100,2) as perc_share_on_total_population<br \/>from <br \/>(select country , religion , population <br \/>from religions r<br \/>where `year` = 2020) as base<br \/>join<br \/>(select country, sum (population) as total_population<br \/>from religions r <br \/>where `year` = 2020<br \/>group by country) as a<br \/>on base.country = a.country;<\/p><h6># Tabulka rozdil v ocekavane delce doziti v roce 1965 a 2015:<\/h6><p><br \/>create table t_life_expectancy_diff as<br \/>select <br \/>le15.country, <br \/>le15.life_expectancy_2015, <br \/>le65.life_expectancy_1965, <br \/>round (le15.life_expectancy_2015-le65.life_expectancy_1965, 2) as life_expectancy_diff<br \/>from<br \/>(select country, life_expectancy as life_expectancy_2015<br \/>from life_expectancy le <br \/>where `year` = 2015) as le15<br \/>join<br \/>(select country, life_expectancy as life_expectancy_1965<br \/>from life_expectancy le <br \/>where `year` = 1965) as le65<br \/>on le15.country = le65.country<br \/>order by country ;<\/p><h6># Do tabulky weather pridam sloupec country:<\/h6><p><br \/>create table t_weather as<br \/>select <br \/>zeme.country, <br \/>base.*<br \/>from<br \/>(select * <br \/>from weather w ) as base<br \/>left join<br \/>(select country, capital_city<br \/>from countries) as zeme<br \/>on base.city = zeme.capital_city ;<\/p><h6># Tabulku t_weather jsem updatoval o nazvy zemi tam kde chybely:<\/h6><p><br \/>update t_weather set country = &#8216;Greece&#8217; where city = &#8216;Athens&#8217;;<br \/>update t_weather set country = &#8216;Belgium&#8217; where city = &#8216;Brussels&#8217;;<br \/>update t_weather set country = &#8216;Romania&#8217; where city = &#8216;Bucharest&#8217;;<br \/>update t_weather set country = &#8216;Finland&#8217; where city = &#8216;Helsinki&#8217;;<br \/>update t_weather set country = &#8216;Ukraine&#8217; where city = &#8216;Kiev&#8217;;<br \/>update t_weather set country = &#8216;Portugal&#8217; where city = &#8216;Lisbon&#8217;;<br \/>update t_weather set country = &#8216;Luxembourg&#8217; where city = &#8216;Luxembourg&#8217;;<br \/>update t_weather set country = &#8216;Czechia&#8217; where city = &#8216;Prague&#8217;;<br \/>update t_weather set country = &#8216;Italy&#8217; where city = &#8216;Rome&#8217;;<br \/>update t_weather set country = &#8216;Austria&#8217; where city = &#8216;Vienna&#8217;;<br \/>update t_weather set country = &#8216;Poland&#8217; where city = &#8216;Warsaw&#8217;;<\/p><h6># Upravil jsem v tabulce t_weather nazev Ruska aby se shodoval s tabulkou t_covid_confirmed_tests na kterou budu napojovat:<\/h6><p><br \/>update t_weather set country = &#8216;Russian Federation&#8217; where city = &#8216;Moscow&#8217;;<\/p><h6># Tabulka s prumernou denni teplotou:<\/h6><p><br \/>create table t_avg_temp as<br \/>select <br \/>*, <br \/>avg (cast (trim (trim (trailing &#8216;\u00b0c&#8217; from temp))as float)) as avg_temp<br \/>from t_weather tw <br \/>where `time` between &#8217;06:00&#8242; and &#8217;18:00&#8242;<br \/>and country is not null<br \/>group by country, `date`;<\/p><h6># Pocet hodin srazek behem dne:<\/h6><p><br \/>create table t_srazky as<br \/>select <br \/>*, <br \/>count (rain2) as pocet_zaznamu_srazek, (count (rain2))*3 as Rain_hours<br \/>from<br \/>(select *,cast (trim (trim (trailing &#8216;mm&#8217; from rain))as float) as rain2<br \/>from t_weather tw <br \/>where country is not null) as base<br \/>where rain2 &gt; 0<br \/>group by country, `date`;<\/p><h6># Maximalni sila vetru v narazech behem dne:<\/h6><p><br \/>create table t_max_gusty_wind as<br \/>select <br \/>*, <br \/>max (cast (trim (trim (trailing &#8216;km\/h&#8217; from gust))as int)) as max_gusty_wind<br \/>from t_weather tw <br \/>where `time` between &#8217;06:00&#8242; and &#8217;18:00&#8242;<br \/>and country is not null<br \/>group by country,`date` ;<\/p><h6># Tabulku t_covid_confirmed_tests rozsirim o casove promenne, ktere budou nasledovat za sloupcem date:<\/h6><p><br \/>create table t_covid_confirmed_tests_cas as<br \/>select <br \/>country ,<br \/>`date` , <br \/>case <br \/>when dayofweek(`date`) IN (1,7) then &#8216;YES&#8217;<br \/>else &#8216;NO&#8217;<br \/>end as Weekend,<br \/>case when date_format(`date`, &#8216;%m %d&#8217;) BETWEEN (&#8217;03 20&#8242;) AND (&#8217;06 20&#8242;) then 0<br \/>when date_format(`date`, &#8216;%m %d&#8217;) BETWEEN (&#8217;06 21&#8242;) AND (&#8217;09 21&#8242;) then 1<br \/>when date_format(`date`, &#8216;%m %d&#8217;) BETWEEN (&#8217;09 22&#8242;) AND (&#8217;12 20&#8242;) then 2<br \/>else 3<br \/>end as Season,<br \/>confirmed , <br \/>tests_performed <br \/>from t_covid_confirmed_tests tcct ;<\/p><h6># Uprava tabulek vychazejicich z economies, aby se nazvy zemi shodovaly se zakladni tabulkou:<\/h6><p>t_covid_confirmed_tests_cas.<br \/>update t_mort5 set country = &#8216;Brunei&#8217; where country = &#8216;Brunei Darussalam&#8217;;<br \/>update t_mort5 set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_mort5 set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_mort5 set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_mort5 set country = &#8216;Korea, South&#8217; where country =&#8217;South Korea&#8217;;<br \/>update t_mort5 set country = &#8216;Saint Kitts and Nevis&#8217; where country = &#8216;St. Kitts and Nevis&#8217;;<br \/>update t_mort5 set country = &#8216;Saint Lucia&#8217; where country = &#8216;St. Lucia&#8217;;<br \/>update t_mort5 set country = &#8216;Saint Vincent and the Grenadines&#8217; where country = &#8216;St. Vincent and the Grenadines&#8217;;<br \/>update t_mort5 set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;The Democratic Republic of Congo&#8217;;<br \/>update t_mort5 set country = &#8216;Congo (Brazzaville)&#8217; where country = &#8216;Congo&#8217;;<br \/>update t_mort5 set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<\/p><p>update t_gdp_per_capita set country = &#8216;Brunei&#8217; where country = &#8216;Brunei Darussalam&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Korea, South&#8217; where country =&#8217;South Korea&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Saint Kitts and Nevis&#8217; where country = &#8216;St. Kitts and Nevis&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Saint Lucia&#8217; where country = &#8216;St. Lucia&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Saint Vincent and the Grenadines&#8217; where country = &#8216;St. Vincent and the Grenadines&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;The Democratic Republic of Congo&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;Congo (Brazzaville)&#8217; where country = &#8216;Congo&#8217;;<br \/>update t_gdp_per_capita set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<\/p><p>update t_gini set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_gini set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_gini set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_gini set country = &#8216;Korea, South&#8217; where country =&#8217;South Korea&#8217;;<br \/>update t_gini set country = &#8216;Saint Lucia&#8217; where country = &#8216;St. Lucia&#8217;;<br \/>update t_gini set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;The Democratic Republic of Congo&#8217;;<br \/>update t_gini set country = &#8216;Congo (Brazzaville)&#8217; where country = &#8216;Congo&#8217;;<br \/>update t_gini set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<\/p><h6># Uprava tabulky t_pop_density, aby se nazvy zemi shodovaly se zakladni tabulkou:<\/h6><p><br \/>update t_pop_density set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<br \/>update t_pop_density set country = &#8216;Korea, South&#8217; where country = &#8216;South Korea&#8217;;<br \/>update t_pop_density set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_pop_density set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_pop_density set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;Congo&#8217;;<\/p><h6># Uprava nazvu zemi v tabulce t_religion_share:<\/h6><p><br \/>update t_religion_share set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_religion_share set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_religion_share set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_religion_share set country = &#8216;Korea, South&#8217; where country =&#8217;South Korea&#8217;;<br \/>update t_religion_share set country = &#8216;Saint Kitts and Nevis&#8217; where country = &#8216;St. Kitts and Nevis&#8217;;<br \/>update t_religion_share set country = &#8216;Saint Lucia&#8217; where country = &#8216;St. Lucia&#8217;;<br \/>update t_religion_share set country = &#8216;Saint Vincent and the Grenadines&#8217; where country = &#8216;St. Vincent and the Grenadines&#8217;;<br \/>update t_religion_share set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;The Democratic Republic of Congo&#8217;;<br \/>update t_religion_share set country = &#8216;Congo (Brazzaville)&#8217; where country = &#8216;Congo&#8217;;<br \/>update t_religion_share set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<\/p><h6># Uprava nazvu Taiwan v tabulce t_religion_share:<\/h6><p><br \/>update t_religion_share set country = &#8216;Taiwan*&#8217; where country = &#8216;Taiwan&#8217;;<\/p><h6># Uprava zemi v t_life_expectancy_diff:<\/h6><p><br \/>update t_life_expectancy_diff set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Korea, South&#8217; where country =&#8217;South Korea&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;The Democratic Republic of Congo&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Congo (Brazzaville)&#8217; where country = &#8216;Congo&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Taiwan*&#8217; where country = &#8216;Taiwan&#8217;;<\/p><h6># Uprava zemi v tabulkach vychazejicich z t_weather:<\/h6><p><br \/>update t_avg_temp set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_srazky set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_max_gusty_wind set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<\/p><h6># Tabulky pro nabozenstvi:<\/h6><p><br \/>create table t_christianity as<br \/>select country , religion, perc_share_on_total_population as Christianity <br \/>from t_religion_share trs2 where religion = &#8216;Christianity&#8217;;<\/p><p>create table t_islam as<br \/>select country , religion, perc_share_on_total_population as Islam<br \/>from t_religion_share trs2 where religion = &#8216;Islam&#8217;;<\/p><p>create table t_Unaffiliated_Religions as<br \/>select country , religion, perc_share_on_total_population as Unaffiliated_Religions<br \/>from t_religion_share trs2 where religion = &#8216;Unaffiliated Religions&#8217;;<\/p><p>create table t_hinduism as<br \/>select country , religion, perc_share_on_total_population as Hinduism<br \/>from t_religion_share trs2 where religion = &#8216;Hinduism&#8217;;<\/p><p>create table t_buddhism as<br \/>select country , religion, perc_share_on_total_population as Buddhism<br \/>from t_religion_share trs2 where religion = &#8216;Buddhism&#8217;;<\/p><p>create table t_Folk_Religions as<br \/>select country , religion, perc_share_on_total_population as Folk_Religions<br \/>from t_religion_share trs2 where religion = &#8216;Folk Religions&#8217;;<\/p><p>create table t_Other_Religions as<br \/>select country , religion, perc_share_on_total_population as Other_Religions<br \/>from t_religion_share trs2 where religion = &#8216;Other Religions&#8217;;<\/p><p>create table t_Judaism as<br \/>select country , religion, perc_share_on_total_population as Judaism<br \/>from t_religion_share trs2 where religion = &#8216;Judaism&#8217;;<\/p><h6># Vytvoreni tabulky s udaji o celkove populaci a uprava nazvu zemi:<\/h6><p><br \/>create table t_population as <br \/>select country ,population <br \/>from countries;<\/p><p>update t_population set country = &#8216;US&#8217; where country = &#8216;United States&#8217;;<br \/>update t_population set country = &#8216;Korea, South&#8217; where country = &#8216;South Korea&#8217;;<br \/>update t_population set country = &#8216;Burma&#8217; where country = &#8216;Myanmar&#8217;;<br \/>update t_population set country = &#8216;Czechia&#8217; where country = &#8216;Czech Republic&#8217;;<br \/>update t_population set country = &#8216;Congo (Kinshasa)&#8217; where country = &#8216;Congo&#8217;;<\/p><h6># Kontroloval jsem chybejici udaje ve finalni tabulce a nasel chyby:<\/h6><p>\u00a0<\/p><p>update t_population set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<br \/>update t_population set country = &#8216;Fiji&#8217; where country = &#8216;Fiji Islands&#8217;;<br \/>update t_population set country = &#8216;Holy See&#8217; where country = &#8216;Holy See (Vatican City State)&#8217;;<br \/>update t_population set country = &#8216;Libya&#8217; where country = &#8216;Libyan Arab Jamahiriya&#8217;;<br \/>update t_population set country = &#8216;Micronesia&#8217; where country = &#8216;Micronesia, Federated States of&#8217;;<br \/>update t_population set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_population set country = &#8216;Timor-Leste&#8217; where country = &#8216;East Timor&#8217;;<\/p><p>update t_pop_density set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<br \/>update t_pop_density set country = &#8216;Fiji&#8217; where country = &#8216;Fiji Islands&#8217;;<br \/>update t_pop_density set country = &#8216;Holy See&#8217; where country = &#8216;Holy See (Vatican City State)&#8217;;<br \/>update t_pop_density set country = &#8216;Libya&#8217; where country = &#8216;Libyan Arab Jamahiriya&#8217;;<br \/>update t_pop_density set country = &#8216;Micronesia&#8217; where country = &#8216;Micronesia, Federated States of&#8217;;<br \/>update t_pop_density set country = &#8216;Russia&#8217; where country = &#8216;Russian Federation&#8217;;<br \/>update t_pop_density set country = &#8216;Timor-Leste&#8217; where country = &#8216;East Timor&#8217;;<\/p><p>update t_mort5 set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<br \/>update t_gdp_per_capita set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<br \/>update t_gini set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<\/p><h6># Jeste upravy chyb v primarnich datech:<\/h6><p><br \/>update t_life_expectancy_diff set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Micronesia&#8217; where country = &#8216;Micronesia (country)&#8217;;<br \/>update t_life_expectancy_diff set country = &#8216;Timor-Leste&#8217; where country = &#8216;Timor&#8217;;<\/p><p>update t_religion_share set country = &#8220;Cote d&#8217;Ivoire&#8221; where country = &#8216;Ivory Coast&#8217;;<\/p><h6># Tabulka finale:<\/h6><p><br \/>create table t_Jiri_Valasek_projekt_SQL_final as<br \/>select <br \/>tcctc.*,<br \/>tp.population ,<br \/>tpd.population_density , <br \/>tgpc.gdp_per_capita , <br \/>tg.GINI , <br \/>tm.mortaliy_under5 , <br \/>tled.life_expectancy_diff , <br \/>tc.Christianity , <br \/>ti.Islam , <br \/>tb.Buddhism ,<br \/>th.Hinduism ,<br \/>tj.Judaism ,<br \/>tfr.Folk_Religions ,<br \/>tur.Unaffiliated_Religions ,<br \/>tor.Other_Religions , <br \/>tat.avg_temp ,<br \/>ts.Rain_hours ,<br \/>tmgw.max_gusty_wind <br \/>from t_covid_confirmed_tests_cas tcctc <br \/>left join t_population tp <br \/>on tcctc.country = tp.country <br \/>left join t_pop_density tpd <br \/>on tcctc.country = tpd.country <br \/>left join t_gdp_per_capita tgpc <br \/>on tcctc.country = tgpc.country <br \/>left join t_gini tg <br \/>on tcctc.country = tg.country <br \/>left join t_mort5 tm <br \/>on tcctc.country = tm.country <br \/>left join t_life_expectancy_diff tled <br \/>on tcctc.country = tled.country<br \/>left join t_christianity tc <br \/>on tcctc.country = tc.country <br \/>left join t_islam ti <br \/>on tcctc.country = ti.country <br \/>left join t_buddhism tb <br \/>on tcctc.country = tb.country <br \/>left join t_hinduism th <br \/>on tcctc.country = th.country <br \/>left join t_judaism tj <br \/>on tcctc.country = tj.country <br \/>left join t_folk_religions tfr <br \/>on tcctc.country = tfr.country<br \/>left join t_unaffiliated_religions tur <br \/>on tcctc.country = tur.country <br \/>left join t_other_religions tor <br \/>on tcctc.country = tor.country <br \/>left join t_avg_temp tat <br \/>on tcctc.country = tat.country and tcctc.`date` = tat.`date` <br \/>left join t_srazky ts <br \/>on tcctc.country = ts.country and tcctc.`date` = ts.`date` <br \/>left join t_max_gusty_wind tmgw <br \/>on tcctc.country = tmgw.country and tcctc.`date` = tmgw.`date` ;<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>FAKTORY OVLIV\u0147UJ\u00cdC\u00cd \u0160\u00cd\u0158EN\u00cd KORONAVIRU P\u0159\u00edprava dat pro ur\u010dov\u00e1n\u00ed faktor\u016f ovliv\u0148uj\u00edc\u00edch \u0161\u00ed\u0159en\u00ed koronaviru na \u00farovni jednotliv\u00fdch st\u00e1t\u016f. Pou\u017eit\u00e9 technologie: DBeaver, SQL, Tableau. V\u00fdsledn\u00e1 data budou panelov\u00e1, kl\u00ed\u010de budou st\u00e1t\u00a0a den. Pro ur\u010den\u00ed hlavn\u00edch faktor\u016f \u0161\u00ed\u0159en\u00ed koronaviru je pot\u0159eba krom\u011b denn\u00edch n\u00e1r\u016fst\u016f naka\u017een\u00fdch p\u0159i\u0159adit i po\u010dty proveden\u00fdch test\u016f a po\u010det obyvatel dan\u00e9ho st\u00e1tu. Z t\u011bchto t\u0159\u00ed prom\u011bnn\u00fdch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-156","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL - DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jirivalasek.com\/?page_id=156\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL - DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek\" \/>\n<meta property=\"og:description\" content=\"FAKTORY OVLIV\u0147UJ\u00cdC\u00cd \u0160\u00cd\u0158EN\u00cd KORONAVIRU P\u0159\u00edprava dat pro ur\u010dov\u00e1n\u00ed faktor\u016f ovliv\u0148uj\u00edc\u00edch \u0161\u00ed\u0159en\u00ed koronaviru na \u00farovni jednotliv\u00fdch st\u00e1t\u016f. Pou\u017eit\u00e9 technologie: DBeaver, SQL, Tableau. V\u00fdsledn\u00e1 data budou panelov\u00e1, kl\u00ed\u010de budou st\u00e1t\u00a0a den. Pro ur\u010den\u00ed hlavn\u00edch faktor\u016f \u0161\u00ed\u0159en\u00ed koronaviru je pot\u0159eba krom\u011b denn\u00edch n\u00e1r\u016fst\u016f naka\u017een\u00fdch p\u0159i\u0159adit i po\u010dty proveden\u00fdch test\u016f a po\u010det obyvatel dan\u00e9ho st\u00e1tu. Z t\u011bchto t\u0159\u00ed prom\u011bnn\u00fdch [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jirivalasek.com\/?page_id=156\" \/>\n<meta property=\"og:site_name\" content=\"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-19T07:12:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data-1024x588.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156\",\"url\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156\",\"name\":\"SQL - DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jirivalasek.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/panel_data-1024x588.png\",\"datePublished\":\"2023-03-15T17:19:31+00:00\",\"dateModified\":\"2023-08-19T07:12:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/jirivalasek.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/panel_data.png?fit=1476%2C847&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/jirivalasek.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/panel_data.png?fit=1476%2C847&ssl=1\",\"width\":1476,\"height\":847},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/?page_id=156#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jirivalasek.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/#website\",\"url\":\"https:\\\/\\\/jirivalasek.com\\\/\",\"name\":\"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek\",\"description\":\"Mgr. Ji\u0159\u00ed Val\u00e1\u0161ek\",\"publisher\":{\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jirivalasek.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/#organization\",\"name\":\"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek\",\"url\":\"https:\\\/\\\/jirivalasek.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/jirivalasek.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/brandmark-design-5.png?fit=2742%2C1140&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/jirivalasek.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/brandmark-design-5.png?fit=2742%2C1140&ssl=1\",\"width\":2742,\"height\":1140,\"caption\":\"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek\"},\"image\":{\"@id\":\"https:\\\/\\\/jirivalasek.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL - DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jirivalasek.com\/?page_id=156","og_locale":"en_US","og_type":"article","og_title":"SQL - DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek","og_description":"FAKTORY OVLIV\u0147UJ\u00cdC\u00cd \u0160\u00cd\u0158EN\u00cd KORONAVIRU P\u0159\u00edprava dat pro ur\u010dov\u00e1n\u00ed faktor\u016f ovliv\u0148uj\u00edc\u00edch \u0161\u00ed\u0159en\u00ed koronaviru na \u00farovni jednotliv\u00fdch st\u00e1t\u016f. Pou\u017eit\u00e9 technologie: DBeaver, SQL, Tableau. V\u00fdsledn\u00e1 data budou panelov\u00e1, kl\u00ed\u010de budou st\u00e1t\u00a0a den. Pro ur\u010den\u00ed hlavn\u00edch faktor\u016f \u0161\u00ed\u0159en\u00ed koronaviru je pot\u0159eba krom\u011b denn\u00edch n\u00e1r\u016fst\u016f naka\u017een\u00fdch p\u0159i\u0159adit i po\u010dty proveden\u00fdch test\u016f a po\u010det obyvatel dan\u00e9ho st\u00e1tu. Z t\u011bchto t\u0159\u00ed prom\u011bnn\u00fdch [&hellip;]","og_url":"https:\/\/jirivalasek.com\/?page_id=156","og_site_name":"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek","article_modified_time":"2023-08-19T07:12:39+00:00","og_image":[{"url":"https:\/\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data-1024x588.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jirivalasek.com\/?page_id=156","url":"https:\/\/jirivalasek.com\/?page_id=156","name":"SQL - DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek","isPartOf":{"@id":"https:\/\/jirivalasek.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jirivalasek.com\/?page_id=156#primaryimage"},"image":{"@id":"https:\/\/jirivalasek.com\/?page_id=156#primaryimage"},"thumbnailUrl":"https:\/\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data-1024x588.png","datePublished":"2023-03-15T17:19:31+00:00","dateModified":"2023-08-19T07:12:39+00:00","breadcrumb":{"@id":"https:\/\/jirivalasek.com\/?page_id=156#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jirivalasek.com\/?page_id=156"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jirivalasek.com\/?page_id=156#primaryimage","url":"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?fit=1476%2C847&ssl=1","contentUrl":"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/04\/panel_data.png?fit=1476%2C847&ssl=1","width":1476,"height":847},{"@type":"BreadcrumbList","@id":"https:\/\/jirivalasek.com\/?page_id=156#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jirivalasek.com\/"},{"@type":"ListItem","position":2,"name":"SQL"}]},{"@type":"WebSite","@id":"https:\/\/jirivalasek.com\/#website","url":"https:\/\/jirivalasek.com\/","name":"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek","description":"Mgr. Ji\u0159\u00ed Val\u00e1\u0161ek","publisher":{"@id":"https:\/\/jirivalasek.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jirivalasek.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jirivalasek.com\/#organization","name":"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek","url":"https:\/\/jirivalasek.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jirivalasek.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/03\/brandmark-design-5.png?fit=2742%2C1140&ssl=1","contentUrl":"https:\/\/i0.wp.com\/jirivalasek.com\/wp-content\/uploads\/2023\/03\/brandmark-design-5.png?fit=2742%2C1140&ssl=1","width":2742,"height":1140,"caption":"DATASYNTHIQ - Ji\u0159\u00ed Val\u00e1\u0161ek"},"image":{"@id":"https:\/\/jirivalasek.com\/#\/schema\/logo\/image\/"}}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jirivalasek.com\/index.php?rest_route=\/wp\/v2\/pages\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jirivalasek.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jirivalasek.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jirivalasek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jirivalasek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156"}],"version-history":[{"count":35,"href":"https:\/\/jirivalasek.com\/index.php?rest_route=\/wp\/v2\/pages\/156\/revisions"}],"predecessor-version":[{"id":874,"href":"https:\/\/jirivalasek.com\/index.php?rest_route=\/wp\/v2\/pages\/156\/revisions\/874"}],"wp:attachment":[{"href":"https:\/\/jirivalasek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}