<?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 is not working... in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/273740#M15969</link>
    <description>Sorry YOUR Right ..I Must Have Pasted Wrong Code</description>
    <pubDate>Sat, 28 May 2016 03:06:24 GMT</pubDate>
    <dc:creator>Beto16</dc:creator>
    <dc:date>2016-05-28T03:06:24Z</dc:date>
    <item>
      <title>left join is not working...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/254750#M15350</link>
      <description>&lt;P&gt;. &amp;nbsp; Hi I have 2 &amp;nbsp;tables &amp;nbsp;one &amp;nbsp;has 7k. &amp;nbsp; Records table 2 has 14k&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want &amp;nbsp;to bring every thing from table one 7k records and only the data from table 2 matches...enclose is my &amp;nbsp;code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table temp2 as&lt;/P&gt;&lt;P&gt;select one.*, two.atm as b_atm, two.date as b_date&lt;/P&gt;&lt;P&gt;from one,two&lt;/P&gt;&lt;P&gt;where one.id=two.id and two.date gt &amp;nbsp;one.date&lt;/P&gt;&lt;P&gt;group by one.id&lt;/P&gt;&lt;P&gt;having two.date-one.date =min(two.date-one.date);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table want2 as&amp;nbsp;&lt;/P&gt;&lt;P&gt;select temp2.*,two.id as c_id ,two.date as c_date&amp;nbsp;&lt;/P&gt;&lt;P&gt;From temp2,two&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where &amp;nbsp;temp2.id =two.id and two.date &amp;nbsp;gt temp2.date&lt;/P&gt;&lt;P&gt;group by temp2.id&lt;/P&gt;&lt;P&gt;having two.date- temp2.date=min(two.date-temp2.date);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for assistance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 17:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/254750#M15350</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-03-05T17:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: left join is not working...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/255120#M15363</link>
      <description>Hi Beto16,&lt;BR /&gt;Your title says "left join is not working" but I do not see a left join in your code. It is all inner join. Can you be more specific as to what you are getting and what you want to get?</description>
      <pubDate>Mon, 07 Mar 2016 22:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/255120#M15363</guid>
      <dc:creator>mbuchecker</dc:creator>
      <dc:date>2016-03-07T22:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: left join is not working...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/273740#M15969</link>
      <description>Sorry YOUR Right ..I Must Have Pasted Wrong Code</description>
      <pubDate>Sat, 28 May 2016 03:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/left-join-is-not-working/m-p/273740#M15969</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-05-28T03:06:24Z</dc:date>
    </item>
  </channel>
</rss>

