<?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: proc sql in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-sql/m-p/773442#M37807</link>
    <description>&lt;P&gt;Your SELECT clause needs to be more specific, along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select A.Total as Total_A, B.Total as Total_B, Prob_A, Prob_B, A.Leaf&lt;/P&gt;
&lt;P&gt;from A, B&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 18:10:35 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2021-10-11T18:10:35Z</dc:date>
    <item>
      <title>proc sql</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-sql/m-p/773436#M37805</link>
      <description>&lt;P&gt;I have 2 tables (A and B) with the columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In A: Leaf, Total, Prob_A&lt;/P&gt;&lt;P&gt;In B: Leaf, Total, Prob_B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to join these 2 tables (in C), but when I do "full join" by "proc sql", it's returning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In C: Leaf, Total, Prob_A,&amp;nbsp;Prob_B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But only the variable "Leaf" is the key, the "Total" has diferente values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to return the "Total" from th 2 tables? Thus:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C: Leaf, Total_A, Total_B, Prob_A,&amp;nbsp;Prob_B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-sql/m-p/773436#M37805</guid>
      <dc:creator>Thalitacosta</dc:creator>
      <dc:date>2021-10-11T17:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-sql/m-p/773442#M37807</link>
      <description>&lt;P&gt;Your SELECT clause needs to be more specific, along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select A.Total as Total_A, B.Total as Total_B, Prob_A, Prob_B, A.Leaf&lt;/P&gt;
&lt;P&gt;from A, B&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 18:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-sql/m-p/773442#M37807</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-10-11T18:10:35Z</dc:date>
    </item>
  </channel>
</rss>

