{"id":27,"date":"2005-09-22T09:27:07","date_gmt":"2005-09-22T14:27:07","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/sql-server-recursive-join\/"},"modified":"2011-11-22T09:10:32","modified_gmt":"2011-11-22T14:10:32","slug":"sql-server-recursive-join","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/sql-server-recursive-join\/","title":{"rendered":"SQL Server Recursive Join"},"content":{"rendered":"<p>I&#8217;ve read some annoying articles about <a href=\"http:\/\/www.4guysfromrolla.com\/webtech\/sqlguru\/q121799-1.shtml\">recursive joins in SQL Server 2000<\/a>.  You know, where you have a table with id and parent_id and you want to get the whole hierarchy of elements.  The short answer is: no.  You can&#8217;t do that in SQL Server 2000.<\/p>\n<p><a href=\"http:\/\/www.oracle.com\/technology\/oramag\/webcolumns\/2003\/techarticles\/gennick_connectby.html\">You can in Oracle<\/a>.<\/p>\n<p>You can use a Common Table Expression in SQL Server 2005.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve read some annoying articles about recursive joins in SQL Server 2000. You know, where you have a table with id and parent_id and you want to get the whole hierarchy of elements. The short answer is: no. You can&#8217;t do that in SQL Server 2000. You can in Oracle. You can use a Common [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-sql-server"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}