<?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 Studio Create Table with Left Join Issue in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767360#M15274</link>
    <description>&lt;P&gt;Yes, indeed, I am using for instance table a, table b, and table c. I have joined these tables and the code of joining the table is attached.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 10:58:13 GMT</pubDate>
    <dc:creator>abidi</dc:creator>
    <dc:date>2021-09-13T10:58:13Z</dc:date>
    <item>
      <title>SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767348#M15272</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Studio and SAS VA. I have 3 tables and left joined successfully and want to retrieve all the records with all fields. The query result comes up with the desired output but when I encapsulate query inside the create table statement, it retrieves only 542 fields out of 721 fields. Please find below the code for your reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%rskmgt;&lt;BR /&gt;proc sql;&lt;BR /&gt;Create table OBS_ENG_AP_COMPLT AS&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from table a left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table b&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ON a.id = b.id left join table c&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ON a.id = c.id&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;%rskmgt_load_lasr_tbls_no_perms(intblnm=OBS_ENG_AP_COMPLT,inlib=WORK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767348#M15272</guid>
      <dc:creator>abidi</dc:creator>
      <dc:date>2021-09-13T10:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767352#M15273</link>
      <description>&lt;P&gt;This code seems like it is using the exact same SAS data set named TABLE for all three datasets that are going to be joined. Is that what you want? It's not what you said "I have 3 tables".&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767352#M15273</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-13T10:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767360#M15274</link>
      <description>&lt;P&gt;Yes, indeed, I am using for instance table a, table b, and table c. I have joined these tables and the code of joining the table is attached.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767360#M15274</guid>
      <dc:creator>abidi</dc:creator>
      <dc:date>2021-09-13T10:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767362#M15275</link>
      <description>&lt;P&gt;Your code is joining table to itself 3 times. You are not joining table a, table b and table c.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    Create table OBS_ENG_AP_COMPLT AS
    Select *
       from a left join b
       ON a.id = b.id 
       left join c
       ON a.id = c.id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 11:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767362#M15275</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-13T11:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767364#M15276</link>
      <description>&lt;P&gt;This is the complete code. Sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;Select *&lt;BR /&gt;from sq.observations as obs Left Join&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sq.engagement as eng&lt;BR /&gt;ON obs.ID = eng.CUST_OBJ_ID Left Join&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sq.actionplan as actplan&lt;BR /&gt;ON obs.ID = actplan.CUST_OBJ_ID;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 11:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767364#M15276</guid>
      <dc:creator>abidi</dc:creator>
      <dc:date>2021-09-13T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767368#M15277</link>
      <description>&lt;P&gt;There's nothing obviously wrong with your code. How many records in each of the three data sets?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 11:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767368#M15277</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-13T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Create Table with Left Join Issue</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767547#M15278</link>
      <description>&lt;P&gt;What does your SAS log report regarding the number of rows and columns created? It will be similar to this:&lt;/P&gt;
&lt;PRE&gt;NOTE: Table WORK.TEST created, with 19 rows and 5 columns.&lt;/PRE&gt;
&lt;P&gt;Please note that if your input tables have common column names then only the columns from the first table will be selected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 20:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Studio-Create-Table-with-Left-Join-Issue/m-p/767547#M15278</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-09-13T20:21:14Z</dc:date>
    </item>
  </channel>
</rss>

