<?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 in SQL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65276#M18616</link>
    <description>Thanks!</description>
    <pubDate>Fri, 05 Mar 2010 18:40:38 GMT</pubDate>
    <dc:creator>DSivic</dc:creator>
    <dc:date>2010-03-05T18:40:38Z</dc:date>
    <item>
      <title>Left Join in SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65274#M18614</link>
      <description>Hi everyone, first visit to the forums!&lt;BR /&gt;
&lt;BR /&gt;
I am doing a left join on two data sets and there are common data fields (other than the ones I'm joining on) in the two sets of data.  Some of these common fields may not have the same data, though.  I am wondering if when I left join data set B on data set A which of the common fields it will keep the data from, A or B?&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table edm_spg as&lt;BR /&gt;
select a.*, b.*&lt;BR /&gt;
from edm_spg a left join &amp;amp;tblout. b&lt;BR /&gt;
on a.loan_number=b.loan_number and a.ldate=b.ldate;&lt;BR /&gt;
quit;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 05 Mar 2010 17:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65274#M18614</guid>
      <dc:creator>DSivic</dc:creator>
      <dc:date>2010-03-05T17:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join in SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65275#M18615</link>
      <description>From the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website:&lt;BR /&gt;
&lt;BR /&gt;
Exploring PROC SQL® Joins and Join Algorithms&lt;BR /&gt;
Kirk Paul Lafler, Software Intelligence Corporation, Spring Valley, California&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/035-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/035-2009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
TS-553, SQL Joins -- The Long and The Short of It&lt;BR /&gt;
Paul Kent, SAS Institute Inc. &lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts553.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts553.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 05 Mar 2010 17:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65275#M18615</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-05T17:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join in SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65276#M18616</link>
      <description>Thanks!</description>
      <pubDate>Fri, 05 Mar 2010 18:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Left-Join-in-SQL/m-p/65276#M18616</guid>
      <dc:creator>DSivic</dc:creator>
      <dc:date>2010-03-05T18:40:38Z</dc:date>
    </item>
  </channel>
</rss>

