<?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 Re: Question About joins in PROC sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450905#M113596</link>
    <description>&lt;P&gt;Your&amp;nbsp;&lt;STRONG&gt;ON&lt;/STRONG&gt; join-conditions are not syntactically correct. They should read &lt;STRONG&gt;ON T1.something1 = T2.something2&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 22:36:26 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-04-03T22:36:26Z</dc:date>
    <item>
      <title>Question About joins in PROC sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450904#M113595</link>
      <description>Suppose i have 3 tables:&lt;BR /&gt;My query is essentially&lt;BR /&gt;Select *&lt;BR /&gt;From T1&lt;BR /&gt;Inner join T2 on T1&lt;BR /&gt;Inner join T3 on T2&lt;BR /&gt;Where T1.filter = somefilter.&lt;BR /&gt;&lt;BR /&gt;I understand T2 will join into the filtered T1 because of the where statement.  Does T3 join on the newly filtered T2(because of T1),  or will it try to join T2 as if it is unfiltered&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2018 22:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450904#M113595</guid>
      <dc:creator>mrdlau</dc:creator>
      <dc:date>2018-04-03T22:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question About joins in PROC sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450905#M113596</link>
      <description>&lt;P&gt;Your&amp;nbsp;&lt;STRONG&gt;ON&lt;/STRONG&gt; join-conditions are not syntactically correct. They should read &lt;STRONG&gt;ON T1.something1 = T2.something2&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 22:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450905#M113596</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-04-03T22:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question About joins in PROC sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450906#M113597</link>
      <description>Thanks.  I know my joints aren’t correct from a syntax perspective. I was just asking from a conceptual perspective. I.e. can I join 1 and 2 and then 3 and 2 in one join</description>
      <pubDate>Tue, 03 Apr 2018 22:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450906#M113597</guid>
      <dc:creator>mrdlau</dc:creator>
      <dc:date>2018-04-03T22:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Question About joins in PROC sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450929#M113599</link>
      <description>&lt;P&gt;best way to&amp;nbsp;understand by&amp;nbsp;&amp;nbsp;making up data and try out various scenarios. This will tremendously increase your knowledge. check with on clause initially then try where clauses. Nothing better than learning by doing.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 01:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450929#M113599</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-04-04T01:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question About joins in PROC sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450930#M113600</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38339"&gt;@mrdlau&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&amp;gt; can I join 1 and 2 and then 3 and 2 in one join&lt;BR /&gt;Yes you can.&amp;nbsp; And any other combination.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why even ask? As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;said, just try it. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You'll have the answer faster, and you'll learn better.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 23:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450930#M113600</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-04T23:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Question About joins in PROC sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450951#M113613</link>
      <description>&lt;P&gt;And while you're doing your tests, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt; suggested, also try a solution with sort and data steps, where you do the joins piecemeal.&lt;/P&gt;
&lt;P&gt;With larger datasets, the overall performance might surprise you.&lt;/P&gt;
&lt;P&gt;Caveat: This is only possible with 1-to-many, not with many-to-many relationships, where SQL is needed for the cartesian join.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 06:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-About-joins-in-PROC-sql/m-p/450951#M113613</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-04T06:17:05Z</dc:date>
    </item>
  </channel>
</rss>

