<?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: [SQL left join] Multi-calls for the same data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546166#M151183</link>
    <description>&lt;P&gt;The code follows a parent-child chain, max. 3 levels deep.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 14:32:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-03-26T14:32:53Z</dc:date>
    <item>
      <title>[SQL left join] Multi-calls for the same data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546154#M151178</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello&lt;BR /&gt;I can't understand the idea that was developed in this SQL query.&lt;BR /&gt;Multi-calls were used for the Test1 table&lt;BR /&gt;Could you please help me with his understanding&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input name $  pur_id id;
cards;
A 1 2
B 2 3
C 3 4
D 4 5
E 5 6
F 6 7
G 7 8
H 8 9 
I 9 10
J 10 11
K 11 12
;run;

data test1;
input pur_id id;
cards;
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
;run;



proc sql;
create table test2 as select test.name, b.id as id_n1,c.id as id_n2,d.id as id_n3
from test left join test1 as b
on test.pur_id=test1.id
left join test1 as c
on b.pur_id=c.id
left join test1 as d
on c.pur_id=d.id
order by name
;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Mar 2019 14:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546154#M151178</guid>
      <dc:creator>mansour_ib_sas</dc:creator>
      <dc:date>2019-03-26T14:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: [SQL left join] Multi-calls for the same data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546166#M151183</link>
      <description>&lt;P&gt;The code follows a parent-child chain, max. 3 levels deep.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 14:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546166#M151183</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-26T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: [SQL left join] Multi-calls for the same data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546171#M151186</link>
      <description>&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;what is it for?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 14:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546171#M151186</guid>
      <dc:creator>mansour_ib_sas</dc:creator>
      <dc:date>2019-03-26T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: [SQL left join] Multi-calls for the same data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546179#M151190</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121317"&gt;@mansour_ib_sas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your answer,&lt;/P&gt;
&lt;P&gt;what is it for?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Look at the documentation of the code.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 14:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-left-join-Multi-calls-for-the-same-data/m-p/546179#M151190</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-26T14:56:25Z</dc:date>
    </item>
  </channel>
</rss>

