<?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 equiv of Merge (If A or B) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255736#M57093</link>
    <description>&lt;P&gt;SQL will give you the cartesian product, while the data step will give you as many records for a given by value as were present in one of the input datasets.&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;P&gt;dataset a has 2 records for x = 1, while dataset b has 3.&lt;/P&gt;
&lt;P&gt;SQL (join on a.x = b.x) will give you six records (all combinations), the data step merge (by x; with if a or b;) 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 07:09:31 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-03-10T07:09:31Z</dc:date>
    <item>
      <title>Proc SQL equiv of Merge (If A or B)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255720#M57091</link>
      <description>&lt;P&gt;I wonder if a full outer join in proc sql is the equivalent of a merge using if (A or B). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA All;&lt;BR /&gt;MERGE West(IN=A)&lt;BR /&gt;East(IN=B);&lt;BR /&gt;BY Id;&lt;BR /&gt;IF A OR B;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 04:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255720#M57091</guid>
      <dc:creator>wer61537</dc:creator>
      <dc:date>2016-03-10T04:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL equiv of Merge (If A or B)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255724#M57092</link>
      <description>&lt;P&gt;Depends on if you have multiple instances of your BY variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's several good write ups on data step vs sql joins - search on lexjansen.com&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/249-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/249-30.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 04:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255724#M57092</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-10T04:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL equiv of Merge (If A or B)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255736#M57093</link>
      <description>&lt;P&gt;SQL will give you the cartesian product, while the data step will give you as many records for a given by value as were present in one of the input datasets.&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;P&gt;dataset a has 2 records for x = 1, while dataset b has 3.&lt;/P&gt;
&lt;P&gt;SQL (join on a.x = b.x) will give you six records (all combinations), the data step merge (by x; with if a or b;) 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 07:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255736#M57093</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-10T07:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL equiv of Merge (If A or B)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255743#M57095</link>
      <description>&lt;P&gt;Here is a nice pictorial of SQL joins:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2271iE11FDAEA7710A30E/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 09:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-equiv-of-Merge-If-A-or-B/m-p/255743#M57095</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-10T09:24:01Z</dc:date>
    </item>
  </channel>
</rss>

