<?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: Is there a difference between LEFT Outer JOIN and RIGHT Outer JOIN? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907200#M40570</link>
    <description>So they are essentially the same?</description>
    <pubDate>Sun, 10 Dec 2023 22:11:28 GMT</pubDate>
    <dc:creator>cosmid</dc:creator>
    <dc:date>2023-12-10T22:11:28Z</dc:date>
    <item>
      <title>Is there a difference between LEFT Outer JOIN and RIGHT Outer JOIN?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907198#M40568</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 21:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907198#M40568</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2023-12-10T21:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between LEFT Outer JOIN and RIGHT Outer JOIN?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907199#M40569</link>
      <description>&lt;P&gt;Keep all rows from the left side as opposed to keep all rows from the right side. But if you have a left join formulated and then switch to a right join and also switch your source tables accordingly then the result will be the same.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 22:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907199#M40569</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-10T22:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between LEFT Outer JOIN and RIGHT Outer JOIN?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907200#M40570</link>
      <description>So they are essentially the same?</description>
      <pubDate>Sun, 10 Dec 2023 22:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907200#M40570</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2023-12-10T22:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between LEFT Outer JOIN and RIGHT Outer JOIN?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907203#M40571</link>
      <description>&lt;P&gt;Depending on how you look at it - yes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1;
  var1=1;
  do id=1,3,6;
    output;
  end;
run;
data have2;
  var2=1;
  do id=1 to 5;
    output;
  end;
run;

proc sql;
  select t1.id, t1.var1, t2.var2
  from have1 t1 left join have2 t2
    on t1.id=t2.id
  ;
quit;

proc sql;
  select t1.id, t1.var1, t2.var2
  from have2 t2 right join have1 t1
    on t1.id=t2.id
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1702260997762.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91106iC343262FB72CDDF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1702260997762.png" alt="Patrick_0-1702260997762.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 02:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-difference-between-LEFT-Outer-JOIN-and-RIGHT-Outer/m-p/907203#M40571</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-11T02:16:49Z</dc:date>
    </item>
  </channel>
</rss>

