<?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: PROC SQL Joins on 3 Tables in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/391865#M11900</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;gives a good example of a 3 table join.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52588"&gt;@Ujjawal&lt;/a&gt;&amp;nbsp;gave though is for a match-merge which would generate (potentially) different results.&amp;nbsp;&lt;A href="http://www2.sas.com/proceedings/sugi30/249-30.pdf" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;is a link to a SUGI 30 paper highlighting the differences (there are many other papers as well). &amp;nbsp;There are reasons to use the different types of merge/joins depending on the need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2017 14:41:28 GMT</pubDate>
    <dc:creator>SteveED</dc:creator>
    <dc:date>2017-08-30T14:41:28Z</dc:date>
    <item>
      <title>PROC SQL Joins on 3 Tables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/196808#M4324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we use LEFT JOIN when we have more than 2 tables? PROC SQL equivalent code for the following merge statement code?l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data abc;&lt;/P&gt;&lt;P&gt;merge a (in=X) b c;&lt;/P&gt;&lt;P&gt;by id;&lt;/P&gt;&lt;P&gt;if X;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 19:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/196808#M4324</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2015-04-15T19:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Joins on 3 Tables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/196809#M4325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table abc as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from a&lt;/P&gt;&lt;P&gt;&amp;nbsp; left join b&lt;/P&gt;&lt;P&gt;&amp;nbsp; on a.id = b.id&lt;/P&gt;&lt;P&gt;&amp;nbsp; left join c&lt;/P&gt;&lt;P&gt;&amp;nbsp; on a.id = c.id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/196809#M4325</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-04-15T20:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Joins on 3 Tables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/391865#M11900</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;gives a good example of a 3 table join.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52588"&gt;@Ujjawal&lt;/a&gt;&amp;nbsp;gave though is for a match-merge which would generate (potentially) different results.&amp;nbsp;&lt;A href="http://www2.sas.com/proceedings/sugi30/249-30.pdf" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;is a link to a SUGI 30 paper highlighting the differences (there are many other papers as well). &amp;nbsp;There are reasons to use the different types of merge/joins depending on the need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-SQL-Joins-on-3-Tables/m-p/391865#M11900</guid>
      <dc:creator>SteveED</dc:creator>
      <dc:date>2017-08-30T14:41:28Z</dc:date>
    </item>
  </channel>
</rss>

