<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Query Builder Joins are actually where clause statements? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110348#M9424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I have a wrong setting in the EG or query builder objects?&lt;/P&gt;&lt;P&gt;Or does it internally not matter with SAS and the SQL performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Why does querybuilder generate SQL code that makes the table joins into &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select columns &lt;/P&gt;&lt;P&gt;from table1 t1, table2 t2, table3 t3, table4 t4, table5 t5 &lt;/P&gt;&lt;P&gt;where (t1.id = t2.id and t1.id = t3.id and t1.id = t4.id and t1.id = t5.id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select columns from table1&lt;/P&gt;&lt;P&gt;join table2 on table1.id = table2.id&lt;/P&gt;&lt;P&gt;join table3 on table1.id = table3.id&lt;/P&gt;&lt;P&gt;join table4 on table1.id = table4.id&lt;/P&gt;&lt;P&gt;join table5 on table1.id = table5.id;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 09:36:33 GMT</pubDate>
    <dc:creator>hulst</dc:creator>
    <dc:date>2013-10-11T09:36:33Z</dc:date>
    <item>
      <title>Query Builder Joins are actually where clause statements?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110348#M9424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I have a wrong setting in the EG or query builder objects?&lt;/P&gt;&lt;P&gt;Or does it internally not matter with SAS and the SQL performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Why does querybuilder generate SQL code that makes the table joins into &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select columns &lt;/P&gt;&lt;P&gt;from table1 t1, table2 t2, table3 t3, table4 t4, table5 t5 &lt;/P&gt;&lt;P&gt;where (t1.id = t2.id and t1.id = t3.id and t1.id = t4.id and t1.id = t5.id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select columns from table1&lt;/P&gt;&lt;P&gt;join table2 on table1.id = table2.id&lt;/P&gt;&lt;P&gt;join table3 on table1.id = table3.id&lt;/P&gt;&lt;P&gt;join table4 on table1.id = table4.id&lt;/P&gt;&lt;P&gt;join table5 on table1.id = table5.id;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 09:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110348#M9424</guid>
      <dc:creator>hulst</dc:creator>
      <dc:date>2013-10-11T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder Joins are actually where clause statements?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110349#M9425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the menu "Join Tables" shows Join Order with text like&lt;/P&gt;&lt;P&gt;INNER JOIN: t1.id = t2.id&lt;/P&gt;&lt;P&gt;INNER JOIN: t1.id = t3.id&lt;/P&gt;&lt;P&gt;INNER JOIN: t1.id = t4.id&lt;/P&gt;&lt;P&gt;INNER JOIN: t1.id = t5.id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But "Preview -&amp;gt; Code" show the where clause is used... ??? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 09:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110349#M9425</guid>
      <dc:creator>hulst</dc:creator>
      <dc:date>2013-10-11T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder Joins are actually where clause statements?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110350#M9426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe these are just 2 notations for inner joins: Implicit and Explicit.&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Join_(SQL"&gt;http://en.wikipedia.org/wiki/Join_(SQL&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 10:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110350#M9426</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-10-11T10:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder Joins are actually where clause statements?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110351#M9427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EG generates different JOIN syntax for certain conditions because it allows "pass through" or "push down" to occur.&amp;nbsp; PROC SQL will try to optimize the query so that it can push as much work as possible to the database (if you're working with a database).&amp;nbsp; Certain constructs push down more successfully, including these "implied joins" where the tables are listed in the FROM clause separated by commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110351#M9427</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-10-11T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder Joins are actually where clause statements?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110352#M9428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris&lt;/P&gt;&lt;P&gt;It's always very interesting to learn about the reasons why things are done the way they are done. Good to know when I code my own joins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-Builder-Joins-are-actually-where-clause-statements/m-p/110352#M9428</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-10-11T12:41:42Z</dc:date>
    </item>
  </channel>
</rss>

