<?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 using proc sql Department  wise highest salary gt 10000 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749480#M235517</link>
    <description>&lt;P&gt;Department wise highest salary gt 10000 using proc sql&lt;/P&gt;
&lt;P&gt;data a;&lt;/P&gt;
&lt;P&gt;input name salary department;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;rahul 100000&amp;nbsp; &amp;nbsp;a&lt;/P&gt;
&lt;P&gt;rohit&amp;nbsp; 90900&amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;
&lt;P&gt;nisha 8000&amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/P&gt;
&lt;P&gt;pulkit 7000&amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;
&lt;P&gt;yashika 6000&amp;nbsp; a&lt;/P&gt;
&lt;P&gt;yash 11000&amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 11:21:10 GMT</pubDate>
    <dc:creator>aanan1417</dc:creator>
    <dc:date>2021-06-22T11:21:10Z</dc:date>
    <item>
      <title>using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749480#M235517</link>
      <description>&lt;P&gt;Department wise highest salary gt 10000 using proc sql&lt;/P&gt;
&lt;P&gt;data a;&lt;/P&gt;
&lt;P&gt;input name salary department;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;rahul 100000&amp;nbsp; &amp;nbsp;a&lt;/P&gt;
&lt;P&gt;rohit&amp;nbsp; 90900&amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;
&lt;P&gt;nisha 8000&amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/P&gt;
&lt;P&gt;pulkit 7000&amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;
&lt;P&gt;yashika 6000&amp;nbsp; a&lt;/P&gt;
&lt;P&gt;yash 11000&amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 11:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749480#M235517</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-06-22T11:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749490#M235525</link>
      <description>&lt;P&gt;Take a look at HAVING and MAX() aggregate function.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 11:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749490#M235525</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-06-22T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749494#M235528</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you pls help me with the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 12:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749494#M235528</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-06-22T12:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749523#M235545</link>
      <description>&lt;P&gt;First, fix this:&lt;/P&gt;
&lt;PRE&gt; 72         
 73         data a;
 74         input name salary department;
 75         datalines;
 
 NOTE: Invalid data for name in line 76 1-5.
 NOTE: Invalid data for department in line 76 16-16.
 REGEL:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     
 76         rahul 100000   a
 name=. salary=100000 department=. _ERROR_=1 _N_=1
 NOTE: Invalid data for name in line 77 1-5.
 NOTE: Invalid data for department in line 77 18-18.
 77         rohit  90900     b
 name=. salary=90900 department=. _ERROR_=1 _N_=2
 NOTE: Invalid data for name in line 78 1-5.
 NOTE: Invalid data for department in line 78 17-17.
 78         nisha 8000      a
 name=. salary=8000 department=. _ERROR_=1 _N_=3
 NOTE: Invalid data for name in line 79 1-6.
 NOTE: Invalid data for department in line 79 18-18.
 79         pulkit 7000      b
 name=. salary=7000 department=. _ERROR_=1 _N_=4
 NOTE: Invalid data for name in line 80 1-7.
 NOTE: Invalid data for department in line 80 15-15.
 80         yashika 6000  a
 name=. salary=6000 department=. _ERROR_=1 _N_=5
 NOTE: Invalid data for name in line 81 1-4.
 NOTE: Invalid data for department in line 81 16-16.
 81         yash 11000     b
 name=. salary=11000 department=. _ERROR_=1 _N_=6
 NOTE: The data set WORK.A has 6 observations and 3 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 13:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749523#M235545</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-22T13:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749538#M235555</link>
      <description>&lt;P&gt;data a; input name $ salary department $; datalines; rahul 100000 a rohit 90900 b nisha 8000 a pulkit 7000 b yashika 6000 a yash 11000 b ; run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 13:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749538#M235555</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-06-22T13:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749547#M235562</link>
      <description>&lt;P&gt;From that, you can now use HAVING and MAX, as already suggested:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select *
  from a
  group by department
  having salary = max(salary)
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 13:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749547#M235562</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-22T13:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749565#M235572</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
input name $ salary department $;
datalines;
rahul 100000 a
rohit 90900 b
nisha 8000 a
pulkit 7000 b
yashika 6000 a
yash 11000 b
;
run;

proc sql number;
	select department, max(salary) as highest_sal
		from a
		group by department 
		having highest_sal gt 10000;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 14:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749565#M235572</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-06-22T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749784#M235699</link>
      <description>&lt;P&gt;we need those salary which is greater than 10000.&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 05:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749784#M235699</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-06-23T05:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: using proc sql Department  wise highest salary gt 10000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749787#M235702</link>
      <description>&lt;P&gt;To limit the salaries, use a dataset option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  from a (where=(salary gt 10000))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which will greatly reduce the effort SQL has to spend on sorting.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 05:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-proc-sql-Department-wise-highest-salary-gt-10000/m-p/749787#M235702</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-23T05:58:29Z</dc:date>
    </item>
  </channel>
</rss>

