{"id":1705,"date":"2020-11-09T07:00:58","date_gmt":"2020-11-09T04:00:58","guid":{"rendered":"https:\/\/www.dataplatform.gr\/?p=1705"},"modified":"2024-07-01T17:52:27","modified_gmt":"2024-07-01T14:52:27","slug":"ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap","status":"publish","type":"post","link":"https:\/\/www.dataplatform.gr\/en\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/","title":{"rendered":"What are set operators (Union) and how they differ from Joins in SQL"},"content":{"rendered":"<p>In this article we will analyze the use of set operators, the types that exist and the differences between them and SQL Joins.<\/p>\n\n\n\n<p>In her world <strong>SQL<\/strong> (Structured Query Language) many times we will want to combine two different data sets into a new one. This is achieved by using<strong> set operators<\/strong> \/ <strong>union operator<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How is it different with SQL Joins?<\/h2>\n\n\n\n<p>Sta <strong>SQL Joins<\/strong> we compare columns from two different tables by making records consisting of the columns of those two tables.<\/p>\n\n\n\n<p>Sta <strong>Union operators<\/strong> we join the records (lines) of two different result sets (queries) into a single one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set operators<\/h2>\n\n\n\n<p>There are four kinds of set operators:&nbsp;<strong>Union all, Union, Except, Intersect<\/strong><\/p>\n\n\n\n<p>Depending on which one we use will return a different result.<\/p>\n\n\n\n<p>Let&#039;s explain them one by one with examples.<\/p>\n\n\n\n<p>To begin with, we will make two tables with data so that it is easier to understand the difference between each type:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">create table pelatis (\n  onoma_pelati varchar(50));\n\ncreate table pwlitis (\n  onoma_pwliti varchar(50));\n  \ninsert into pelatis values\n('Stratos'),\n('Nikos'),\n('Iasonas');\n\ninsert into pwlitis values\n('Stratos'),\n('Giorgos'),\n('Stefanos');<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">select * from pelatis;\nselect * from pwlitis;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"662\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/1_un_select.png\" alt=\"\" class=\"wp-image-1707\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/1_un_select.png 465w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/1_un_select-211x300.png 211w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Union All<\/h2>\n\n\n\n<p>In the Union All operator, we combine the results from several queries into a single one that also contains all records that are entirely duplicates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"544\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/2_un_union_all.png\" alt=\"\" class=\"wp-image-1706\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/2_un_union_all.png 824w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/2_un_union_all-300x198.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/2_un_union_all-768x507.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">select * from pelatis\nunion all\nselect * from pwlitis;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"508\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/3_un_sunion_all.png\" alt=\"\" class=\"wp-image-1708\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/3_un_sunion_all.png 455w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/3_un_sunion_all-269x300.png 269w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/figure>\n\n\n\n<p>We see that \u201cStratos\u201d appears twice as it exists in both sets of results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Union<\/h2>\n\n\n\n<p>In the <strong>Union <\/strong>operator as opposed to <strong>Union All<\/strong> when we combine the results from several queries into a single one, <strong>not <\/strong>contains as many records as are entirely duplicates.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">select * from pelatis\nunion\nselect * from pwlitis;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"449\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/4_un_sunion.png\" alt=\"\" class=\"wp-image-1709\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/4_un_sunion.png 452w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/4_un_sunion-300x298.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/4_un_sunion-150x150.png 150w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/figure>\n\n\n\n<p>We see this time that \u201cStratos\u201d only exists once, even though it exists in both sets of results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Except<\/h2>\n\n\n\n<p>In the <strong>Except<\/strong> operator displays the first set of results after the results of the second have been removed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"544\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/5_un_except.png\" alt=\"\" class=\"wp-image-1712\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/5_un_except.png 824w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/5_un_except-300x198.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/5_un_except-768x507.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">select * from pelatis\nexcept\nselect * from pwlitis;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"274\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/6_un_sexcept.png\" alt=\"\" class=\"wp-image-1710\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/6_un_sexcept.png 446w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/6_un_sexcept-300x184.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p>Does not appear <em>&quot;Stratos&quot;<\/em> as it was present in the second set of results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Intersect<\/h2>\n\n\n\n<p>The Intersect operator only displays those records that are the same in both result sets.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"544\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/7_un_intersect.png\" alt=\"\" class=\"wp-image-1713\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/7_un_intersect.png 824w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/7_un_intersect-300x198.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/7_un_intersect-768x507.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">select * from pelatis\nintersect\nselect * from pwlitis;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"222\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/8_un_sintersect.png\" alt=\"\" class=\"wp-image-1714\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/8_un_sintersect.png 453w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/07\/8_un_sintersect-300x147.png 300w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/figure>\n\n\n\n<p>In this case only the registration <em>&quot;Stratos&quot;<\/em> is common to both sets of results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Normal uses:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The number of columns and their order should be the same in all queries.<\/li>\n\n\n\n<li>The data types should be compatible. (i.e. it is not possible to define the phone as text in the first query and as an integer in the second)<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sources:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/t-sql\/language-elements\/set-operators-union-transact-sql?view=sql-server-ver15\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Set \u2013 Union<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>In this article we will analyze the use of set operators, the types that exist and the differences between them and SQL Joins. In the world of SQL (Structured Query Language) many times we will want to combine two different data sets into a new one. This is achieved by using set operators \/ union [\u2026]<\/p>","protected":false},"author":1,"featured_media":700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[82,39],"class_list":["post-1705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","tag-set-operators","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL - DataPlatform.gr<\/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:\/\/www.dataplatform.gr\/en\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL - DataPlatform.gr\" \/>\n<meta property=\"og:description\" content=\"\u03a3\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03b8\u03b1 \u03b1\u03bd\u03b1\u03bb\u03cd\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b7 \u03c7\u03c1\u03ae\u03c3\u03b7 \u03c4\u03c9\u03bd set operators, \u03c4\u03b1 \u03b5\u03af\u03b4\u03b7 \u03c0\u03bf\u03c5 \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ad\u03c2 \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03b1\u03bd\u03ac\u03bc\u03b5\u03c3\u03b1 \u03c3\u03b5 \u03b1\u03c5\u03c4\u03ac \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 SQL Joins. \u03a3\u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03c4\u03b7\u03c2 SQL (Structured Query Language) \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03c6\u03bf\u03c1\u03ad\u03c2 \u03b8\u03b1 \u03b8\u03ad\u03bb\u03bf\u03c5\u03bc\u03b5 \u03bd\u03b1 \u03c3\u03c5\u03bd\u03b4\u03c5\u03ac\u03c3\u03bf\u03c5\u03bc\u03b5 \u03b4\u03cd\u03bf \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03c3\u03b5\u03c4 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03ba\u03b1\u03b9\u03bd\u03bf\u03cd\u03c1\u03b3\u03b9\u03bf. \u0391\u03c5\u03c4\u03cc \u03b5\u03c0\u03b9\u03c4\u03c5\u03b3\u03c7\u03ac\u03bd\u03b5\u03c4\u03b1\u03b9 \u03bc\u03b5 \u03c4\u03b7 \u03c7\u03c1\u03ae\u03c3\u03b7 set operators \/ union [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dataplatform.gr\/en\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/\" \/>\n<meta property=\"og:site_name\" content=\"DataPlatform.gr\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dataplatform.gr\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-09T04:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-01T14:52:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sql.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Stratos Matzouranis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stratos Matzouranis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/\"},\"author\":{\"name\":\"Stratos Matzouranis\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\"},\"headline\":\"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL\",\"datePublished\":\"2020-11-09T04:00:58+00:00\",\"dateModified\":\"2024-07-01T14:52:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/\"},\"wordCount\":62,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sql.png\",\"keywords\":[\"set operators\",\"SQL\"],\"articleSection\":[\"Databases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/\",\"name\":\"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL - DataPlatform.gr\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sql.png\",\"datePublished\":\"2020-11-09T04:00:58+00:00\",\"dateModified\":\"2024-07-01T14:52:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sql.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sql.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Databases\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"name\":\"dataplatform.gr - Sky is not the limit!\",\"description\":\"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dataplatform.gr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\",\"name\":\"dataplatform.gr\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"width\":322,\"height\":139,\"caption\":\"dataplatform.gr\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dataplatform.gr\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dataplatform-gr\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\",\"name\":\"Stratos Matzouranis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"caption\":\"Stratos Matzouranis\"},\"sameAs\":[\"https:\\\/\\\/www.dataplatform.gr\"],\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/en\\\/author\\\/stratos-matzouranis\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL - DataPlatform.gr","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dataplatform.gr\/en\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/","og_locale":"en_US","og_type":"article","og_title":"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL - DataPlatform.gr","og_description":"\u03a3\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03b8\u03b1 \u03b1\u03bd\u03b1\u03bb\u03cd\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b7 \u03c7\u03c1\u03ae\u03c3\u03b7 \u03c4\u03c9\u03bd set operators, \u03c4\u03b1 \u03b5\u03af\u03b4\u03b7 \u03c0\u03bf\u03c5 \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ad\u03c2 \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03b1\u03bd\u03ac\u03bc\u03b5\u03c3\u03b1 \u03c3\u03b5 \u03b1\u03c5\u03c4\u03ac \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 SQL Joins. \u03a3\u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03c4\u03b7\u03c2 SQL (Structured Query Language) \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03c6\u03bf\u03c1\u03ad\u03c2 \u03b8\u03b1 \u03b8\u03ad\u03bb\u03bf\u03c5\u03bc\u03b5 \u03bd\u03b1 \u03c3\u03c5\u03bd\u03b4\u03c5\u03ac\u03c3\u03bf\u03c5\u03bc\u03b5 \u03b4\u03cd\u03bf \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03c3\u03b5\u03c4 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03ba\u03b1\u03b9\u03bd\u03bf\u03cd\u03c1\u03b3\u03b9\u03bf. \u0391\u03c5\u03c4\u03cc \u03b5\u03c0\u03b9\u03c4\u03c5\u03b3\u03c7\u03ac\u03bd\u03b5\u03c4\u03b1\u03b9 \u03bc\u03b5 \u03c4\u03b7 \u03c7\u03c1\u03ae\u03c3\u03b7 set operators \/ union [&hellip;]","og_url":"https:\/\/www.dataplatform.gr\/en\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/","og_site_name":"DataPlatform.gr","article_publisher":"https:\/\/www.facebook.com\/dataplatform.gr\/","article_published_time":"2020-11-09T04:00:58+00:00","article_modified_time":"2024-07-01T14:52:27+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sql.png","type":"image\/png"}],"author":"Stratos Matzouranis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stratos Matzouranis","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#article","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/"},"author":{"name":"Stratos Matzouranis","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf"},"headline":"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL","datePublished":"2020-11-09T04:00:58+00:00","dateModified":"2024-07-01T14:52:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/"},"wordCount":62,"commentCount":0,"publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"image":{"@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sql.png","keywords":["set operators","SQL"],"articleSection":["Databases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/","url":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/","name":"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL - DataPlatform.gr","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#primaryimage"},"image":{"@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sql.png","datePublished":"2020-11-09T04:00:58+00:00","dateModified":"2024-07-01T14:52:27+00:00","breadcrumb":{"@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#primaryimage","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sql.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sql.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.dataplatform.gr\/ti-einai-ta-set-operators-union-kai-ti-diafora-echoyn-ap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae","item":"https:\/\/www.dataplatform.gr\/"},{"@type":"ListItem","position":2,"name":"Databases","item":"https:\/\/www.dataplatform.gr\/category\/databases\/"},{"@type":"ListItem","position":3,"name":"\u03a4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03b1 set operators (Union) \u03ba\u03b1\u03b9 \u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03ac \u03ad\u03c7\u03bf\u03c5\u03bd \u03b1\u03c0\u03cc \u03c4\u03b1 Joins \u03c3\u03c4\u03b7\u03bd SQL"}]},{"@type":"WebSite","@id":"https:\/\/www.dataplatform.gr\/#website","url":"https:\/\/www.dataplatform.gr\/","name":"dataplatform.gr - Sky is not the limit!","description":"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.","publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dataplatform.gr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dataplatform.gr\/#organization","name":"dataplatform.gr","url":"https:\/\/www.dataplatform.gr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","width":322,"height":139,"caption":"dataplatform.gr"},"image":{"@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dataplatform.gr\/","https:\/\/www.linkedin.com\/company\/dataplatform-gr\/"]},{"@type":"Person","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf","name":"Stratos Matzouranis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","caption":"Stratos Matzouranis"},"sameAs":["https:\/\/www.dataplatform.gr"],"url":"https:\/\/www.dataplatform.gr\/en\/author\/stratos-matzouranis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/1705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/comments?post=1705"}],"version-history":[{"count":1,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/1705\/revisions"}],"predecessor-version":[{"id":5786,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/1705\/revisions\/5786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media\/700"}],"wp:attachment":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media?parent=1705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/categories?post=1705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/tags?post=1705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}