<?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 Working out median using SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563659#M158045</link>
    <description>&lt;P&gt;I am quite new to the sql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code worked fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I would like to add a programming code that will enable me to get MEDIAN.&lt;/P&gt;&lt;P&gt;Could anyone please help?&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select type,&lt;BR /&gt;count(IPtotal) as _N ,&lt;BR /&gt;nmiss(IPtotal) as _MISS ,&lt;BR /&gt;avg(IPtotal) as _AVG ,&lt;BR /&gt;min(IPtotal) as _MIN ,&lt;BR /&gt;max(IPtotal) as _MAX ,&lt;BR /&gt;range(IPtotal) as _RANGE ,&lt;BR /&gt;std(IPtotal) as _STD ,&lt;BR /&gt;var(IPtotal) as _VAR&lt;BR /&gt;from didi&lt;BR /&gt;group by type;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 11:09:46 GMT</pubDate>
    <dc:creator>SAS_AMUH</dc:creator>
    <dc:date>2019-06-05T11:09:46Z</dc:date>
    <item>
      <title>Working out median using SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563659#M158045</link>
      <description>&lt;P&gt;I am quite new to the sql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code worked fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I would like to add a programming code that will enable me to get MEDIAN.&lt;/P&gt;&lt;P&gt;Could anyone please help?&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select type,&lt;BR /&gt;count(IPtotal) as _N ,&lt;BR /&gt;nmiss(IPtotal) as _MISS ,&lt;BR /&gt;avg(IPtotal) as _AVG ,&lt;BR /&gt;min(IPtotal) as _MIN ,&lt;BR /&gt;max(IPtotal) as _MAX ,&lt;BR /&gt;range(IPtotal) as _RANGE ,&lt;BR /&gt;std(IPtotal) as _STD ,&lt;BR /&gt;var(IPtotal) as _VAR&lt;BR /&gt;from didi&lt;BR /&gt;group by type;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 11:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563659#M158045</guid>
      <dc:creator>SAS_AMUH</dc:creator>
      <dc:date>2019-06-05T11:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Working out median using SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563680#M158047</link>
      <description>&lt;P&gt;Median is not supported by PROC SQL.&lt;/P&gt;
&lt;P&gt;Use PROC SUMMARY/UNIVARIATE instead.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 11:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563680#M158047</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-06-05T11:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Working out median using SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563701#M158056</link>
      <description>&lt;P&gt;Linus,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Median() function is&amp;nbsp; supported by PROC SQL if you have SAS9.4&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/563701#M158056</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-05T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Working out median using SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/565178#M158646</link>
      <description>&lt;P&gt;I missed that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, thanks for pointing it out!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Working-out-median-using-SQL/m-p/565178#M158646</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-06-11T11:13:39Z</dc:date>
    </item>
  </channel>
</rss>

