{"id":48595,"date":"2014-11-30T10:44:41","date_gmt":"2014-11-30T17:44:41","guid":{"rendered":"http:\/\/hill-kleerup.org\/blog\/2014\/11\/30\/a-guide-to-sql-joins.html"},"modified":"2014-11-30T10:44:41","modified_gmt":"2014-11-30T17:44:41","slug":"a-guide-to-sql-joins","status":"publish","type":"post","link":"https:\/\/hill-kleerup.org\/blog\/2014\/11\/30\/a-guide-to-sql-joins.html","title":{"rendered":"A Guide to SQL Joins"},"content":{"rendered":"<p>Very cool. My own SQL skills have eroded over time from disuse, but I recall joins being one of the tricker bits out there. This one&#39;s for <span class=\"proflinkWrapper\"><span class=\"proflinkPrefix\">+<\/span><a class=\"proflink\" href=\"https:\/\/plus.google.com\/103328827291075446110\" oid=\"103328827291075446110\">Margie Kleerup<\/a><\/span>.<\/p>\n<p><span class=\"sm2wpreshared\">Originally shared by <a href='https:\/\/plus.google.com\/101083456815352083930'>+Javarevisited<\/a>:<\/span><\/p>\n<blockquote>\n<p><b>Difference between LEFT and RIGHT Outer Join in SQL<\/b><br \/>SQL Join is one of the tricky concept to master, I hope this diagram helps you to understand INNER, LEFT, RIGHT, CROSS and FULL OUTER JOIN \ud83d\ude42 <a href=\"http:\/\/javarevisited.blogspot.com\/2013\/05\/difference-between-left-and-right-outer-join-sql-mysql.html\">http:\/\/javarevisited.blogspot.com\/2013\/05\/difference-between-left-and-right-outer-join-sql-mysql.html<\/a><br \/> <a rel=\"nofollow\" class=\"ot-hashtag\" href=\"https:\/\/plus.google.com\/s\/%23MySQL\">#MySQL<\/a>   <a rel=\"nofollow\" class=\"ot-hashtag\" href=\"https:\/\/plus.google.com\/s\/%23SQL\">#SQL<\/a><\/p><\/blockquote>\n<div style='text-align:center'><a href='https:\/\/plus.google.com\/photos\/103515296667914706982\/albums\/6087055878620203649\/6087055887114001506'><img src='https:\/\/lh5.googleusercontent.com\/-P1DRlt1A2Fo\/VHmRFCdhXGI\/AAAAAAAAJIY\/WZO2hEDIo10\/LEFT%2Bvs%2BRight%2BOuter%2BJoin%2Bin%2BSQL.png?imgmax=660' style='max-width:650px;' \/><\/a><\/div>\n<div style='text-align:center'>\n<a href='' style='width:50px;height:50px;display:inline-block;background-size:cover;background-image:url();'><\/a>\u00a0\n<\/div>\n<p><span style='font-size:small;'><a href='https:\/\/plus.google.com\/101083456815352083930\/posts\/CMqsZFesNrt'>View on Google+<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Very cool. My own SQL skills have eroded over time from disuse, but I recall joins being one of the tricker bits out there. This one&#39;s for +Margie Kleerup. Originally shared by +Javarevisited: Difference between LEFT and RIGHT Outer Join in SQLSQL Join is one of the tricky concept to master, I hope this diagram &hellip; <a href=\"https:\/\/hill-kleerup.org\/blog\/2014\/11\/30\/a-guide-to-sql-joins.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A Guide to SQL Joins&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":48596,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[106],"tags":[766,767],"class_list":["post-48595","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plusposts","tag-mysql","tag-sql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/hill-kleerup.org\/blog\/wp\/wp-content\/uploads\/2014\/11\/LEFT+vs+Right+Outer+Join+in+SQL.pngimgmax=660.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":10843,"url":"https:\/\/hill-kleerup.org\/blog\/2007\/06\/18\/we_are_experiencing_techn.html","url_meta":{"origin":48595,"position":0},"title":"We are experiencing technical difficulties","author":"***Dave","date":"Mon 18-Jun-07 9:10am","format":false,"excerpt":"Ugh.\u00a0 Getting a MySQL error (\"SQL\/DB Error -- [Table 'mt_tbping' is marked as crashed and should be repaired]\") on my blogs when I try to pull up individual entries (e.g.,...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11553,"url":"https:\/\/hill-kleerup.org\/blog\/2007\/08\/03\/movable_type_woes.html","url_meta":{"origin":48595,"position":1},"title":"Movable Type woes","author":"***Dave","date":"Fri 3-Aug-07 3:07pm","format":false,"excerpt":"Okay, so here's the scoop.\u00a0 Sometime after things get actually saved into database (posts, comments), but before the rebuild occurs or is completed, the process errors out: The site error...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14790,"url":"https:\/\/hill-kleerup.org\/blog\/2009\/05\/13\/tweets-from-three_star_dave-on-2009-05-13.html","url_meta":{"origin":48595,"position":2},"title":"Tweets from @Three_Star_Dave on 2009-05-13","author":"***Dave","date":"Wed 13-May-09 11:30pm","format":false,"excerpt":"So if I get to the station by 5:25 (due to cat), there's a train there I can take in. Good to know. (Gasps for air from sprint to platform.) # Confirmed that my karate brown belt test will be next Thursday, just before leaving for WDW. Suddenly feeling nervous.\u2026","rel":"","context":"In &quot;~Tweets&quot;","block_context":{"text":"~Tweets","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/tweets"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1819,"url":"https:\/\/hill-kleerup.org\/blog\/2002\/04\/25\/there_is_nothin.html","url_meta":{"origin":48595,"position":3},"title":"There is nothing wrong with your television","author":"***Dave","date":"Thu 25-Apr-02 12:39pm","format":false,"excerpt":"Here's a paean in Salon to possibly the best SF series ever: \"The Outer Limits\". Even more than these films, though, the series' use of pulp accoutrements as portals into...","rel":"","context":"In &quot;Media &amp; Culture&quot;","block_context":{"text":"Media &amp; Culture","link":"https:\/\/hill-kleerup.org\/blog\/category\/media"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":43157,"url":"https:\/\/hill-kleerup.org\/blog\/2014\/06\/20\/the-return-of-demon-with-a-glass-hand.html","url_meta":{"origin":48595,"position":4},"title":"The Return of &quot;Demon with a Glass Hand&quot;","author":"***Dave","date":"Fri 20-Jun-14 10:46am","format":false,"excerpt":"The most awesome \"Outer Limits\" episode ever, penned by Harlan Ellison, is being turned into a movie. \u00a0\u00a0Hope they can make use of the Bradbury building.More on the TV episode \u00a0(SPOILERS) here (https:\/\/en.wikipedia.org\/wiki\/Demon_with_a_glass_hand), and the episode itself is free on Hulu (http:\/\/www.hulu.com\/watch\/155121). \u00a0That does raise the issue of how, since\u2026","rel":"","context":"In &quot;~PlusPosts&quot;","block_context":{"text":"~PlusPosts","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/plusposts"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8380,"url":"https:\/\/hill-kleerup.org\/blog\/2005\/12\/01\/non_scratch_cds.html","url_meta":{"origin":48595,"position":5},"title":"Non-scratch CDs","author":"***Dave","date":"Thu 1-Dec-05 2:39pm","format":false,"excerpt":"An interesting concept -- CDs with small bumps on the outer face to keep the face just off of a desk or other surface -- and with bevelled edges so...","rel":"","context":"In &quot;Hi-Tech&quot;","block_context":{"text":"Hi-Tech","link":"https:\/\/hill-kleerup.org\/blog\/category\/hi-tech"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/48595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/comments?post=48595"}],"version-history":[{"count":0,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/48595\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media\/48596"}],"wp:attachment":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media?parent=48595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/categories?post=48595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/tags?post=48595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}