{"id":2955,"date":"2021-09-25T09:50:38","date_gmt":"2021-09-25T04:20:38","guid":{"rendered":"https:\/\/binaryterms.com\/?p=2955"},"modified":"2021-09-25T14:04:22","modified_gmt":"2021-09-25T08:34:22","slug":"join-operations-in-sql","status":"publish","type":"post","link":"https:\/\/binaryterms.com\/join-operations-in-sql.html","title":{"rendered":"Join Operations in SQL"},"content":{"rendered":"<p>Join operations in SQL integrates two relations from the database to form a new relation. The relations are integrated or merged based on the common columns present in the two relations. In the section ahead, we will be discussing all forms of join in SQL.<\/p>\n<h2>Types of Join Operations in SQL<\/h2>\n<ol>\n<li><a href=\"#NaturalJoin\">Natural Join<\/a><\/li>\n<li><a href=\"#EquiJoin\">Equi Join<\/a><\/li>\n<li><a href=\"#ThetaJoin\">Theta Join<\/a><\/li>\n<li><a href=\"#SemiJoin\">Semi Join<\/a><\/li>\n<li><a href=\"#OuterJoin\">Outer Join<\/a><\/li>\n<\/ol>\n<p><a name=\"NaturalJoin\"><\/a><\/p>\n<h3>Natural Join<\/h3>\n<p>The natural join operation integrates two relations on the basis of common columns present in the relation. Though the relations have common attributes the result of natural join has only one occurrence of the common attribute as the duplicate attribute is eliminated at the time of computation.<\/p>\n<p>Most of the systems require that the common attributes present in the relations on which natural join has to be performed must have the same name as it becomes easy to identify the attributes that are used to perform join.<\/p>\n<p>In this case, if the common attributes have different names you have to use rename clause. Though in some systems natural join allows the names of common attributes to be used for joining to have different names they must have the same domain.<\/p>\n<p>Now let us understand the natural join with the help of an example. We have two relations professor(prof_id, first_name, last_name, section) and student(stud_id, prof_id, first_name, last_name). Now, here the common attributes are a professor.prof_id and student.prof_id.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2967\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg\" alt=\"Professor &amp; Student\" width=\"600\" height=\"338\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg 600w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student-300x169.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>The query applying natural join on the relations professor and student is as follow:<\/p>\n<p>SELECT *<br \/>\nFROM professor<br \/>\nJOIN student<br \/>\nON professor.prof_id= student.prof_id;<\/p>\n<p>This join query would result in the following relation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2966\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student.jpg\" alt=\"Natural Join of professor &amp; student\" width=\"600\" height=\"314\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student.jpg 600w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-300x157.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Now you can see that the table above has so many columns so we can modify the query to display some specific attributes only as:<\/p>\n<p>SELECT p.first_name, p.last_name,<br \/>\ns.first_name, s.last_name<br \/>\nFROM professor AS p<br \/>\nJOIN student AS s<br \/>\nON p.prof_id= s.prof_id;<\/p>\n<p>The result of the modified query is given below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2964\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-1.jpg\" alt=\"Natural Join of professor &amp; student 1\" width=\"446\" height=\"271\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-1.jpg 446w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-1-300x182.jpg 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/p>\n<p>But there is again a problem we have two first_names and two last_names which is creating confusion. So, let us again modify this query.<\/p>\n<p>SELECT<br \/>\np.first_name AS prof_fn, p.last_name AS prof_ln,<br \/>\ns.first_name AS stud_fn, s.last_name AS stud_ln<br \/>\nFROM professor AS p<br \/>\nJOIN student AS s<br \/>\nON p.prof_id= s.prof_id;<\/p>\n<p>Now you can easily identify the professor\u2019s first and last name and the student\u2019s first and last name.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2965\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-2.jpg\" alt=\"Natural Join of professor &amp; student 2\" width=\"410\" height=\"269\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-2.jpg 410w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Natural-Join-of-professor-student-2-300x197.jpg 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/p>\n<p><a name=\"EquiJoin\"><\/a><\/p>\n<h3>Equi Join<\/h3>\n<p>The equijoin is a basic join where the join condition is equality. The comparison operator used in the join condition is \u2018=\u2019.<\/p>\n<p>SELECT *<br \/>\nFROM Table 1<br \/>\nJOIN Table 2<br \/>\nON (join_conditon is equality);<\/p>\n<p>Consider that we have two relations employee(emp_id, designation, dept) and student(dept_name, dept).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2959\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Employee-And-Department.jpg\" alt=\"Employee And Department\" width=\"526\" height=\"227\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Employee-And-Department.jpg 526w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Employee-And-Department-300x129.jpg 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/p>\n<p>Here the common attribute on which these relations can be joined is dept. so let us apply equijoin on these two relations<\/p>\n<p>SELECT *<br \/>\nFROM employee AS E<br \/>\nJOIN department AS D<br \/>\nON (E.dept = D.dept);<\/p>\n<p>The result relation for this query is as below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2960\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Equi-Join-of-Employee-Department.jpg\" alt=\"Equi Join of Employee &amp; Department\" width=\"453\" height=\"221\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Equi-Join-of-Employee-Department.jpg 453w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Equi-Join-of-Employee-Department-300x146.jpg 300w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/p>\n<p><a name=\"ThetaJoin\"><\/a><\/p>\n<h3>Theta Join<\/h3>\n<p>Theta join is a join where the join condition is other than equality. If the join condition is equality then it comes out to be an equijoin. The join condition in theta joins include the comparison operators such as &gt;, &lt;, &gt;=, &lt;=.<\/p>\n<p>To illustrate theta join, just let us take an example. Consider we have two relations customer and product.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2958\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Customer-and-Product.jpg\" alt=\"Customer and Product\" width=\"600\" height=\"192\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Customer-and-Product.jpg 600w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Customer-and-Product-300x96.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Now if we have to display the tuples from both the tables where the credit limit is greater than the products price then the query will be:<\/p>\n<p>SELECT *<br \/>\nFROM customer<br \/>\nJOIN product<br \/>\nON (customer.credit_limit &gt; product.price);<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2969\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Theta-Join-of-Customer-Product.jpg\" alt=\"Theta Join of Customer &amp; Product\" width=\"558\" height=\"352\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Theta-Join-of-Customer-Product.jpg 558w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Theta-Join-of-Customer-Product-300x189.jpg 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/p>\n<div id=\"keytake\">\n<ul>\n<li><strong>Note:<\/strong> The natural join, equi join and theta join are also referred to as inner join.<\/li>\n<\/ul>\n<\/div>\n<p><a name=\"SemiJoin\"><\/a><\/p>\n<h3>Semi Join<\/h3>\n<p>Semi join is the join that displays tuples of only the first relation that matches at least one tuple of the other relation. Let us discuss this with an example.<\/p>\n<p>Consider the above relations employee and department and apply the semi-join on employee and department.<\/p>\n<p>SELECT *<br \/>\nFROM employee AS E<br \/>\nSEMI JOIN department AS D<br \/>\nON (E.dept = D.dept);<\/p>\n<p>The result relation of this query is shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2968\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Semi-Join-of-Employee-Department.jpg\" alt=\"Semi Join of Employee &amp; Department\" width=\"347\" height=\"218\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Semi-Join-of-Employee-Department.jpg 347w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Semi-Join-of-Employee-Department-300x188.jpg 300w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/p>\n<p>You can notice that only those tuples of employee relation appear in the result relation that has a matching value for common column in department relation.<br \/>\n<a name=\"OuterJoin\"><\/a><\/p>\n<h3>Outer Join<\/h3>\n<p>The outer join is the join in which matched tuples retain in the result relation and the unmatched tuples in the tables are left null in the result relation. Now the outer join is of three forms:<\/p>\n<p><strong>Full outer join:<\/strong> The full outer join is the join where the tuples from both the relations that have matching values in common columns of the relations on which join is performed, appears in the result relation. And the unmatched tuples from both the relations also appear in the result relation.<\/p>\n<p>Let us understand the full outer join with the help of an example:<\/p>\n<p>SELECT *<br \/>\nFROM student<br \/>\nFULL OUTER JOIN professor<br \/>\nON student.prof_id = professor.prof_id;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2961\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Full-Outer-Join-of-professor-student.jpg\" alt=\"Full Outer Join of professor &amp; student\" width=\"600\" height=\"595\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Full-Outer-Join-of-professor-student.jpg 600w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Full-Outer-Join-of-professor-student-300x298.jpg 300w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Full-Outer-Join-of-professor-student-150x150.jpg 150w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Full-Outer-Join-of-professor-student-100x100.jpg 100w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Full-Outer-Join-of-professor-student-120x120.jpg 120w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>You can notice that the tuples from the student relation that does not have matching values in the common columns of professor relation appear in result relation. And the tuples from the professor relation that does not have matching values in the common columns of student relation also appears in result relation.<\/p>\n<p><strong>Left outer join:<\/strong> In the left outer join the tuples that have matching values in common columns of both the relation appear in the result relation. And the unmatched tuples from the left table also appear in the result relation.<\/p>\n<p>Let us understand the left outer join with the help of an example:<\/p>\n<p>SELECT *<br \/>\nFROM student<br \/>\nLEFT OUTER JOIN professor<br \/>\nON student.prof_id = professor.prof_id;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2963\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Left-Outer-Join-of-professor-student.jpg\" alt=\"Left Outer Join of professor &amp; student\" width=\"600\" height=\"325\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Left-Outer-Join-of-professor-student.jpg 600w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Left-Outer-Join-of-professor-student-300x163.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>You can notice that the tuples from the student relation that does not have matching values in the common columns of professor relation appear in result relation.<\/p>\n<p><strong>Right outer join: <\/strong>In the right outer join the tuples that have matching values in the common columns of both the relations appear in the result relation. And the unmatched tuples from the right relation also appear in the result relation.<\/p>\n<p>Let us understand the right outer join with the help of an example:<\/p>\n<p>SELECT *<br \/>\nFROM student<br \/>\nRIGHT OUTER JOIN professor<br \/>\nON student.prof_id = professor.prof_id;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2972\" src=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Right-Outer-Join-of-professor-student.jpg\" alt=\"Right Outer Join of professor &amp; student\" width=\"600\" height=\"533\" srcset=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Right-Outer-Join-of-professor-student.jpg 600w, https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Right-Outer-Join-of-professor-student-300x267.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>The tuples from the professor relation that does not have matching values in the common columns of student relation appear in the result relation.<\/p>\n<p>So, this is all about join and their types. We have discussed all kinds of join with an example that makes understanding joins easier.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Join operations in SQL integrates two relations from the database to form a new relation. The relations are integrated or merged based on the common columns present in the two relations. In the section ahead, we will be discussing all forms of join in SQL. Types of Join Operations in SQL Natural Join Equi Join [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[4],"tags":[],"class_list":{"0":"post-2955","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-dbms","7":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>what is Join Operations in SQL? Types of Joins - Binary Terms<\/title>\n<meta name=\"description\" content=\"Join operations in SQL integrates two relations to form a new relation. The relations are integrated based on the common columns thay have.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/binaryterms.com\/join-operations-in-sql.html\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"what is Join Operations in SQL? Types of Joins - Binary Terms\" \/>\n<meta property=\"og:description\" content=\"Join operations in SQL integrates two relations to form a new relation. The relations are integrated based on the common columns thay have.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/binaryterms.com\/join-operations-in-sql.html\" \/>\n<meta property=\"og:site_name\" content=\"Binary Terms\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-25T04:20:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-25T08:34:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg\" \/>\n<meta name=\"author\" content=\"Neha T\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Neha T\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html\"},\"author\":{\"name\":\"Neha T\",\"@id\":\"https:\/\/binaryterms.com\/#\/schema\/person\/e495f1d57f5c0a4c521cc3dba95661fe\"},\"headline\":\"Join Operations in SQL\",\"datePublished\":\"2021-09-25T04:20:38+00:00\",\"dateModified\":\"2021-09-25T08:34:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html\"},\"wordCount\":1117,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/binaryterms.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg\",\"articleSection\":[\"DBMS\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/binaryterms.com\/join-operations-in-sql.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html\",\"url\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html\",\"name\":\"what is Join Operations in SQL? Types of Joins - Binary Terms\",\"isPartOf\":{\"@id\":\"https:\/\/binaryterms.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg\",\"datePublished\":\"2021-09-25T04:20:38+00:00\",\"dateModified\":\"2021-09-25T08:34:22+00:00\",\"description\":\"Join operations in SQL integrates two relations to form a new relation. The relations are integrated based on the common columns thay have.\",\"breadcrumb\":{\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/binaryterms.com\/join-operations-in-sql.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage\",\"url\":\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg\",\"contentUrl\":\"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg\",\"width\":600,\"height\":338,\"caption\":\"Professor &amp; Student\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/binaryterms.com\/join-operations-in-sql.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/binaryterms.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Join Operations in SQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/binaryterms.com\/#website\",\"url\":\"https:\/\/binaryterms.com\/\",\"name\":\"Binary Terms\",\"description\":\"The Computer Science &amp; IT Guide\",\"publisher\":{\"@id\":\"https:\/\/binaryterms.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/binaryterms.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/binaryterms.com\/#organization\",\"name\":\"Binary Terms\",\"url\":\"https:\/\/binaryterms.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/binaryterms.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/binaryterms.com\/wp-content\/uploads\/2020\/05\/binary-terms-logo1.png\",\"contentUrl\":\"https:\/\/binaryterms.com\/wp-content\/uploads\/2020\/05\/binary-terms-logo1.png\",\"width\":400,\"height\":63,\"caption\":\"Binary Terms\"},\"image\":{\"@id\":\"https:\/\/binaryterms.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/binaryterms.com\/#\/schema\/person\/e495f1d57f5c0a4c521cc3dba95661fe\",\"name\":\"Neha T\",\"url\":\"https:\/\/binaryterms.com\/author\/author\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"what is Join Operations in SQL? Types of Joins - Binary Terms","description":"Join operations in SQL integrates two relations to form a new relation. The relations are integrated based on the common columns thay have.","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:\/\/binaryterms.com\/join-operations-in-sql.html","og_locale":"en_GB","og_type":"article","og_title":"what is Join Operations in SQL? Types of Joins - Binary Terms","og_description":"Join operations in SQL integrates two relations to form a new relation. The relations are integrated based on the common columns thay have.","og_url":"https:\/\/binaryterms.com\/join-operations-in-sql.html","og_site_name":"Binary Terms","article_published_time":"2021-09-25T04:20:38+00:00","article_modified_time":"2021-09-25T08:34:22+00:00","og_image":[{"url":"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg","type":"","width":"","height":""}],"author":"Neha T","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Neha T","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#article","isPartOf":{"@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html"},"author":{"name":"Neha T","@id":"https:\/\/binaryterms.com\/#\/schema\/person\/e495f1d57f5c0a4c521cc3dba95661fe"},"headline":"Join Operations in SQL","datePublished":"2021-09-25T04:20:38+00:00","dateModified":"2021-09-25T08:34:22+00:00","mainEntityOfPage":{"@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html"},"wordCount":1117,"commentCount":0,"publisher":{"@id":"https:\/\/binaryterms.com\/#organization"},"image":{"@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage"},"thumbnailUrl":"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg","articleSection":["DBMS"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/binaryterms.com\/join-operations-in-sql.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html","url":"https:\/\/binaryterms.com\/join-operations-in-sql.html","name":"what is Join Operations in SQL? Types of Joins - Binary Terms","isPartOf":{"@id":"https:\/\/binaryterms.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage"},"image":{"@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage"},"thumbnailUrl":"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg","datePublished":"2021-09-25T04:20:38+00:00","dateModified":"2021-09-25T08:34:22+00:00","description":"Join operations in SQL integrates two relations to form a new relation. The relations are integrated based on the common columns thay have.","breadcrumb":{"@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/binaryterms.com\/join-operations-in-sql.html"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#primaryimage","url":"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg","contentUrl":"https:\/\/binaryterms.com\/wp-content\/uploads\/2021\/09\/Professor-Student.jpg","width":600,"height":338,"caption":"Professor &amp; Student"},{"@type":"BreadcrumbList","@id":"https:\/\/binaryterms.com\/join-operations-in-sql.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/binaryterms.com\/"},{"@type":"ListItem","position":2,"name":"Join Operations in SQL"}]},{"@type":"WebSite","@id":"https:\/\/binaryterms.com\/#website","url":"https:\/\/binaryterms.com\/","name":"Binary Terms","description":"The Computer Science &amp; IT Guide","publisher":{"@id":"https:\/\/binaryterms.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/binaryterms.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/binaryterms.com\/#organization","name":"Binary Terms","url":"https:\/\/binaryterms.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/binaryterms.com\/#\/schema\/logo\/image\/","url":"https:\/\/binaryterms.com\/wp-content\/uploads\/2020\/05\/binary-terms-logo1.png","contentUrl":"https:\/\/binaryterms.com\/wp-content\/uploads\/2020\/05\/binary-terms-logo1.png","width":400,"height":63,"caption":"Binary Terms"},"image":{"@id":"https:\/\/binaryterms.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/binaryterms.com\/#\/schema\/person\/e495f1d57f5c0a4c521cc3dba95661fe","name":"Neha T","url":"https:\/\/binaryterms.com\/author\/author"}]}},"_links":{"self":[{"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/posts\/2955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/comments?post=2955"}],"version-history":[{"count":12,"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/posts\/2955\/revisions"}],"predecessor-version":[{"id":2980,"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/posts\/2955\/revisions\/2980"}],"wp:attachment":[{"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/media?parent=2955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/categories?post=2955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/binaryterms.com\/wp-json\/wp\/v2\/tags?post=2955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}