<?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: Left join question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Left-join-question/m-p/134867#M36533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by including "where a.date=b.date" in the criteria, you have converted from a left join to an inner join.&amp;nbsp; To make sure it is still a left join, you need to include that as part of the "on" clause...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableA A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join tableB B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.id=b.id and a.date=b.date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 22:29:14 GMT</pubDate>
    <dc:creator>DBailey</dc:creator>
    <dc:date>2014-12-03T22:29:14Z</dc:date>
    <item>
      <title>Left join question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Left-join-question/m-p/134866#M36532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have a left join that is only is more like a join .here is what I have&lt;/P&gt;&lt;P&gt;From table A left join table B on a.id=b.id&lt;/P&gt;&lt;P&gt;Where a.date=b.date&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;I would like everything from table A an where we match from table B &lt;/P&gt;&lt;P&gt;I get back everything we match &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 22:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Left-join-question/m-p/134866#M36532</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2014-12-03T22:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Left join question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Left-join-question/m-p/134867#M36533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by including "where a.date=b.date" in the criteria, you have converted from a left join to an inner join.&amp;nbsp; To make sure it is still a left join, you need to include that as part of the "on" clause...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableA A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join tableB B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.id=b.id and a.date=b.date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 22:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Left-join-question/m-p/134867#M36533</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-12-03T22:29:14Z</dc:date>
    </item>
  </channel>
</rss>

