<?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: SAS PROC SQL LEFT JOIN in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756614#M10088</link>
    <description>&lt;P&gt;THANKS FOR THE HEADS UP&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jul 2021 11:11:08 GMT</pubDate>
    <dc:creator>Kamohelo_A</dc:creator>
    <dc:date>2021-07-26T11:11:08Z</dc:date>
    <item>
      <title>SAS PROC SQL LEFT JOIN</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756603#M10085</link>
      <description>&lt;P&gt;Morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need urgent help, how do you do a join or data step merge in sas between two tables that have multiple columns that must be merged otherwise if you merge on just the one result the data table that gets created breaks and provided a number of rows that is higher than the initial table to which you do a left join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I need to merge at most three columns across two tables that share the exact same three columns with the table in the left join having more columns than the other table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 10:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756603#M10085</guid>
      <dc:creator>Kamohelo_A</dc:creator>
      <dc:date>2021-07-26T10:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS PROC SQL LEFT JOIN</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756606#M10086</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
     create table want as select
          a.*,b.var1,b.var2,b.var3,b.var4
          /* type whatever variable names you want here instead of the fake names I used */
     from dataset1 a left join dataset2 b 
         on a.id1=b.id1 and a.id2=b.id2 and a.id3=b.id3;
         /* type whatever variable names you want here instead of the fake names I used */
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jul 2021 10:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756606#M10086</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-26T10:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS PROC SQL LEFT JOIN</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756613#M10087</link>
      <description>&lt;P&gt;Never mind. I resolved it using the following:&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE DATA_1 AS&lt;BR /&gt;SELECT DATA_INITIAL_1.* , OTHER_DATA.COLUMN5&lt;BR /&gt;FROM DATA_INITIAL_1&lt;BR /&gt;LEFT JOIN&lt;BR /&gt;OTHER_DATA&lt;BR /&gt;ON DATA_INITIAL_1.COLUMN1 = OTHER_DATA.COLUMN1&lt;BR /&gt;AND DATA_INITIAL_1.COLUMN2 = OTHER_DATA.COLUMN2&lt;BR /&gt;AND DATA_INITIAL_1.COLUMN3 = OTHER_DATA.COLUMN3&lt;BR /&gt;AND DATA_INITIAL_1.COLUMN4 = OTHER_DATA.COLUMN4;&lt;BR /&gt;QUIT;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 11:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756613#M10087</guid>
      <dc:creator>Kamohelo_A</dc:creator>
      <dc:date>2021-07-26T11:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS PROC SQL LEFT JOIN</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756614#M10088</link>
      <description>&lt;P&gt;THANKS FOR THE HEADS UP&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 11:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-PROC-SQL-LEFT-JOIN/m-p/756614#M10088</guid>
      <dc:creator>Kamohelo_A</dc:creator>
      <dc:date>2021-07-26T11:11:08Z</dc:date>
    </item>
  </channel>
</rss>

