<?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 Finding the distinct values along with all the columns from the previous table in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891947#M39672</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am trying the find the distinct icustomerid. But when I do that it does not give me the other columns from the previous table. I want the output to just show the distinct icustomerid with all the columns from the previous table. Here is a sample dataset:&lt;/P&gt;
&lt;P&gt;Data Test; &lt;BR /&gt;infile cards expandtabs; &lt;BR /&gt;input icustomerid debt_code Lettered;&lt;BR /&gt;datalines ; &lt;BR /&gt;125 4413245 1&lt;BR /&gt;125 4426817 1&lt;BR /&gt;782 4423817 2&lt;BR /&gt;972 4422740 2&lt;BR /&gt;1052 4429532 2&lt;BR /&gt;1052 4419588 1&lt;BR /&gt;1052 4419420 3&lt;BR /&gt;2294 4428625 3&lt;BR /&gt;;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
create table distinct_customer as 
select distinct icustomerid
from All_letters;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 31 Aug 2023 14:35:20 GMT</pubDate>
    <dc:creator>Sandeep77</dc:creator>
    <dc:date>2023-08-31T14:35:20Z</dc:date>
    <item>
      <title>Finding the distinct values along with all the columns from the previous table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891947#M39672</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am trying the find the distinct icustomerid. But when I do that it does not give me the other columns from the previous table. I want the output to just show the distinct icustomerid with all the columns from the previous table. Here is a sample dataset:&lt;/P&gt;
&lt;P&gt;Data Test; &lt;BR /&gt;infile cards expandtabs; &lt;BR /&gt;input icustomerid debt_code Lettered;&lt;BR /&gt;datalines ; &lt;BR /&gt;125 4413245 1&lt;BR /&gt;125 4426817 1&lt;BR /&gt;782 4423817 2&lt;BR /&gt;972 4422740 2&lt;BR /&gt;1052 4429532 2&lt;BR /&gt;1052 4419588 1&lt;BR /&gt;1052 4419420 3&lt;BR /&gt;2294 4428625 3&lt;BR /&gt;;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
create table distinct_customer as 
select distinct icustomerid
from All_letters;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891947#M39672</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2023-08-31T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the distinct values along with all the columns from the previous table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891948#M39673</link>
      <description>&lt;P&gt;Which of the other values should be taken when there are multiple observations? You need to have a rule for this.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891948#M39673</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-31T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the distinct values along with all the columns from the previous table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891949#M39674</link>
      <description>&lt;P&gt;What is a "previous table"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to provide an example of the desired output given your input example data set.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891949#M39674</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-31T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the distinct values along with all the columns from the previous table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891950#M39675</link>
      <description>&lt;P&gt;Please show us the desired output from this data and from this PROC SQL. If you want distinct levels of icustomerid, its not clear what you want to see in the other columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: from now on, please show us the desired output, rather than making us ask.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-distinct-values-along-with-all-the-columns-from-the/m-p/891950#M39675</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-31T14:42:23Z</dc:date>
    </item>
  </channel>
</rss>

