{"id":1306,"date":"2013-03-12T13:35:06","date_gmt":"2013-03-12T12:35:06","guid":{"rendered":"http:\/\/www.switchbl8.nl\/blog\/?p=1306"},"modified":"2013-04-08T17:21:42","modified_gmt":"2013-04-08T15:21:42","slug":"1306","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2013\/03\/1306\/","title":{"rendered":"SQL joins"},"content":{"rendered":"<p>I&#8217;m an oldskool Oracle user, so I learned and used joins in the oldfashioned way. Just name all the tables in the WHERE-clause, and specify the join conditions, and use (+) for outer joins. Times change, and the new syntax has been around for years. Never really used it, but today I did, and I found this image on the internet, I thought I&#8217;d share it, since I think it&#8217;s quite helpful.<\/p>\n<p><a href=\"http:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2013\/03\/sql-joins.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2013\/03\/sql-joins-300x236.jpg\" alt=\"sql-joins\" width=\"300\" height=\"236\" class=\"aligncenter size-medium wp-image-1307\" srcset=\"https:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2013\/03\/sql-joins-300x236.jpg 300w, https:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2013\/03\/sql-joins.jpg 966w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>It clearly shows how to use LEFT and RIGHT joins. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m an oldskool Oracle user, so I learned and used joins in the oldfashioned way. Just name all the tables in the WHERE-clause, and specify the join conditions, and use (+) for outer joins. Times change, and the new syntax has been around for years. Never really used it, but today I did, and I <a href='https:\/\/www.switchbl8.nl\/blog\/2013\/03\/1306\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[51,92,132],"class_list":["post-1306","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-database","tag-development-2","tag-oracle","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=1306"}],"version-history":[{"count":4,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1306\/revisions"}],"predecessor-version":[{"id":1318,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1306\/revisions\/1318"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=1306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=1306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=1306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}