<?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 Left join same table twice in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Left-join-same-table-twice/m-p/840762#M332431</link>
    <description>Possible to left join same table twice on different variables? What is the significance of this combination?&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table staging.baselii_boo as&lt;BR /&gt;Select a.*,&lt;BR /&gt;b.BOOUK as ID_TYPE_BOO,&lt;BR /&gt;c.BOOUK as BR_ID_TYPE_BOO&lt;BR /&gt;from staging.baselii_boo a&lt;BR /&gt;left join staging.boouk_id_type_mapping b on a.AMNA_USER_6_1=b.CMS&lt;BR /&gt;left join staging.boouk_id_type mapping c on a.BR_nid_type=c.CMS;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Oct 2022 08:38:09 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2022-10-26T08:38:09Z</dc:date>
    <item>
      <title>Left join same table twice</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-same-table-twice/m-p/840762#M332431</link>
      <description>Possible to left join same table twice on different variables? What is the significance of this combination?&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table staging.baselii_boo as&lt;BR /&gt;Select a.*,&lt;BR /&gt;b.BOOUK as ID_TYPE_BOO,&lt;BR /&gt;c.BOOUK as BR_ID_TYPE_BOO&lt;BR /&gt;from staging.baselii_boo a&lt;BR /&gt;left join staging.boouk_id_type_mapping b on a.AMNA_USER_6_1=b.CMS&lt;BR /&gt;left join staging.boouk_id_type mapping c on a.BR_nid_type=c.CMS;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Oct 2022 08:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-same-table-twice/m-p/840762#M332431</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-10-26T08:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Left join same table twice</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-same-table-twice/m-p/840781#M332435</link>
      <description>&lt;P&gt;It's a lookup for two different variables, using the same lookup table.&lt;/P&gt;
&lt;P&gt;Simple technique, often used. But you can make it (much) faster today by loading the lookup table into a hash object and using the two variables as key in two FIND() method calls. Before the advent of the hash, we would often create a format from the lookup table and apply that twice.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 09:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-same-table-twice/m-p/840781#M332435</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-26T09:55:15Z</dc:date>
    </item>
  </channel>
</rss>

