<?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: Help with full outer join in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685876#M208050</link>
    <description>&lt;P&gt;If you don't want the matches do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
create table new
as select * from Cost_data full outer join Sale_price
on Cost_data.product=Sale_price.PRD
where Cost_data.product ne Sale_price.PRD
;quit;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Sep 2020 20:48:20 GMT</pubDate>
    <dc:creator>CurtisMackWSIPP</dc:creator>
    <dc:date>2020-09-22T20:48:20Z</dc:date>
    <item>
      <title>Help with full outer join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685872#M208048</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I am not sure why my full outer join below keep records appear in both table instead of eliminate them.&lt;/P&gt;
&lt;P&gt;Can you please help?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Cost_data;
input Product $ cost supplier $;
datalines;
Book 70 ABC
Pencil 3 XYZ
Laptop 1000 AAA
;run;

data Sale_price;
input PRD $ Price Market $ ;
datalines;
Book 1200 MD21201
Pencil 4 VA23344
Phone 1000 MD21102
;
run;

*Put all in 1 code;
proc sql;
create table new
as select * from Cost_data full outer join Sale_price
on Cost_data.product=Sale_price.PRD
;quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 20:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685872#M208048</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2020-09-22T20:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with full outer join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685876#M208050</link>
      <description>&lt;P&gt;If you don't want the matches do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
create table new
as select * from Cost_data full outer join Sale_price
on Cost_data.product=Sale_price.PRD
where Cost_data.product ne Sale_price.PRD
;quit;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Sep 2020 20:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685876#M208050</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-22T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with full outer join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685880#M208052</link>
      <description>&lt;P&gt;That's what a full (outer) join does. It keeps all observations, including those where no match is found. If you don't want that, use a left, right or inner join.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 20:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-full-outer-join/m-p/685880#M208052</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-22T20:50:29Z</dc:date>
    </item>
  </channel>
</rss>

