<?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 SQL SIMPLE QUENSTION .. SBD HELP ME! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825155#M325912</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a table A and B.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 654px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73684iDEFA4936EB4E278C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 284px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73687iC282D8AEC42EE197/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create the following result by using SQL with the KEY value of the DTGBN column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 266px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73686i2B1A66FF673D674E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;some body help me!!!!&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jul 2022 14:12:54 GMT</pubDate>
    <dc:creator>AmeeKang</dc:creator>
    <dc:date>2022-07-24T14:12:54Z</dc:date>
    <item>
      <title>SQL SIMPLE QUENSTION .. SBD HELP ME!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825155#M325912</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a table A and B.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 654px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73684iDEFA4936EB4E278C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 284px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73687iC282D8AEC42EE197/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create the following result by using SQL with the KEY value of the DTGBN column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 266px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73686i2B1A66FF673D674E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;some body help me!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 14:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825155#M325912</guid>
      <dc:creator>AmeeKang</dc:creator>
      <dc:date>2022-07-24T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SIMPLE QUENSTION .. SBD HELP ME!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825157#M325913</link>
      <description>&lt;P&gt;Please explain the logic used here to give the desired result to be 100+300+50+70-20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you get that from the original data, what is the logic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does table B have to do with this problem?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 14:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825157#M325913</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-24T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SIMPLE QUENSTION .. SBD HELP ME!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825177#M325925</link>
      <description>&lt;P&gt;How do you know that you are supposed to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add the four RFAMT entries in blue cells (100+300+50+70)&lt;/LI&gt;
&lt;LI&gt;Subtract the RFAMT in yellow (-20)&lt;/LI&gt;
&lt;LI&gt;Ignore the RFAMT in the white cell (970000090)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you refer to the DTBIN column as a key?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 01:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825177#M325925</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-07-25T01:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SIMPLE QUENSTION .. SBD HELP ME!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825197#M325936</link>
      <description>&lt;P&gt;Just guessing:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DTGBN: T = addition, M = substraction&lt;/LI&gt;
&lt;LI&gt;table_b.accno must match either table_a.iacno or table_a.oacno&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Right?&lt;/P&gt;
&lt;P&gt;Drop the idea of using sql, data step is most likely better readable an far easier to code.&lt;/P&gt;
&lt;P&gt;Until you post the data in usable form (data steps with datalines) i can't suggest any code.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 09:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825197#M325936</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-25T09:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SIMPLE QUENSTION .. SBD HELP ME!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825207#M325940</link>
      <description>&lt;P&gt;Another thing you need to tell us: what exactly do you expect as output? A dataset, a table, a line in the log? How should it look like?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 10:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-SIMPLE-QUENSTION-SBD-HELP-ME/m-p/825207#M325940</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-25T10:23:39Z</dc:date>
    </item>
  </channel>
</rss>

