<?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: Group by Query Produces Larger Numbers with More Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388903#M93256</link>
    <description>&lt;P&gt;I noticed that when I take the join out that the number is correct not sure why the number of variables is causing this though.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 17:34:50 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2017-08-17T17:34:50Z</dc:date>
    <item>
      <title>Group by Query Produces Larger Numbers with More Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388866#M93249</link>
      <description>&lt;P&gt;I’m running into a puzzling group by query.&amp;nbsp; When I run the query with the columns not commented out I receive done number for the sum of ret_1 when I run the same query with the additional columns I receive a bigger number.&amp;nbsp; Thoughts on why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;&lt;BR /&gt;create table ret_deg4test2 as&lt;BR /&gt;select a.cohort, a.person_uid, a.gender, a.gender_desc, a.residency, a.RESIDENCY_DESC, a.SCHEV_ETHNICITY_DESC,&lt;BR /&gt;b.college, b.COLLEGE_DESC_DISPLAY as COLLEGE_DESC,&lt;BR /&gt;a.pell_eligible, a.pell_recipient,&lt;/P&gt;&lt;P&gt;/*a.schev_student_status,&lt;BR /&gt;a.FIRST_GENERATION, a.HS_GPA, a.HS_GPA_RANGE, a.HS_GPA_RANGE_ID, a.POST_SEC_SCHOOL_GPA, a.SAT_MATH, a.SAT_RANGE, a.SAT_TOTAL,&lt;BR /&gt;a.SAT_TOTAL_RANGE_ID, a.SAT_VERBAL, a.SECONDARY_SCHOOL_PERCENT_RANGE, a.SECONDARY_SCHOOL_PERCENTILE,&lt;BR /&gt;a.academic_origin, a.academic_origin_id,*/&lt;BR /&gt;&lt;BR /&gt;/*Annual fall to fall measures*/&lt;BR /&gt;sum(a.ret_1) as ret_1&lt;/P&gt;&lt;P&gt;from ret_deg3 a&lt;BR /&gt;left join ODSSTU.DAR_CAMPUS b on a.first_college=b.COLLEGE&lt;/P&gt;&lt;P&gt;group by a.cohort, a.person_uid, a.gender, a.gender_desc, a.residency, a.RESIDENCY_DESC, a.SCHEV_ETHNICITY_DESC,&lt;BR /&gt;b.college, b.COLLEGE_DESC_DISPLAY, a.pell_eligible, a.pell_recipient/*,&lt;/P&gt;&lt;P&gt;a.schev_student_status,&lt;BR /&gt;a.FIRST_GENERATION, a.HS_GPA, a.HS_GPA_RANGE, a.HS_GPA_RANGE_ID, a.POST_SEC_SCHOOL_GPA, a.SAT_MATH, a.SAT_RANGE, a.SAT_TOTAL,&lt;BR /&gt;a.SAT_TOTAL_RANGE_ID, a.SAT_VERBAL, a.SECONDARY_SCHOOL_PERCENT_RANGE, a.SECONDARY_SCHOOL_PERCENTILE*/;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 16:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388866#M93249</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-08-17T16:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Group by Query Produces Larger Numbers with More Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388903#M93256</link>
      <description>&lt;P&gt;I noticed that when I take the join out that the number is correct not sure why the number of variables is causing this though.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 17:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388903#M93256</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-08-17T17:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group by Query Produces Larger Numbers with More Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388920#M93258</link>
      <description>&lt;P&gt;The difference is because&amp;nbsp;&lt;SPAN&gt;a.academic_origin, a.academic_origin_id was missing from the group by. &amp;nbsp;There is a bug where the whole sql statment script should have errored out please fix in furture versions.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-Query-Produces-Larger-Numbers-with-More-Variables/m-p/388920#M93258</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-08-17T18:01:49Z</dc:date>
    </item>
  </channel>
</rss>

