<?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 Aggregation Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030847#M910279</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Anyone know the syntax to generate a list of a count for records over a 24 day period.What I want to know is query the database and get records stored in table date field per hour.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
    <pubDate>Wed, 23 Jul 2003 08:46:44 GMT</pubDate>
    <dc:creator>Edgar_10</dc:creator>
    <dc:date>2003-07-23T08:46:44Z</dc:date>
    <item>
      <title>Aggregation Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030847#M910279</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Anyone know the syntax to generate a list of a count for records over a 24 day period.What I want to know is query the database and get records stored in table date field per hour.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Wed, 23 Jul 2003 08:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030847#M910279</guid>
      <dc:creator>Edgar_10</dc:creator>
      <dc:date>2003-07-23T08:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030848#M910280</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;can you try something like this one:&lt;BR /&gt;&lt;BR /&gt;select mnumrows, to_char(mdate, 'dd/mm/yyyy hh24:mi')&lt;BR /&gt;from (&lt;BR /&gt;select count(*) mnumrows, trunc(trndat,'HH') mdate&lt;BR /&gt;from mytable&lt;BR /&gt;where trndat &amp;gt; sysdate-25&lt;BR /&gt;group by trunc(trndat,'HH')&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Wed, 23 Jul 2003 09:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030848#M910280</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-07-23T09:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030849#M910281</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;This is what i get on my test database (output has been limited to first 10 records)&lt;BR /&gt;&lt;BR /&gt;yd@MYDB.MU&amp;gt; r&lt;BR /&gt;  1  select mnumrows, to_char(mdate, 'dd/mm/yyyy hh24:mi')&lt;BR /&gt;  2  from (&lt;BR /&gt;  3  select count(*) mnumrows, trunc(trndat,'HH') mdate&lt;BR /&gt;  4  from mytable&lt;BR /&gt;  5  where trndat &amp;gt; sysdate-25&lt;BR /&gt;  6  group by trunc(trndat,'HH'))&lt;BR /&gt;  7* where rownum &amp;lt; 11&lt;BR /&gt;&lt;BR /&gt;  MNUMROWS TO_CHAR(MDATE,'D&lt;BR /&gt;__________ ________________&lt;BR /&gt;         9 28/06/2003 14:00&lt;BR /&gt;        46 28/06/2003 15:00&lt;BR /&gt;       396 30/06/2003 08:00&lt;BR /&gt;       403 30/06/2003 09:00&lt;BR /&gt;       579 30/06/2003 10:00&lt;BR /&gt;       414 30/06/2003 11:00&lt;BR /&gt;       219 30/06/2003 12:00&lt;BR /&gt;       604 30/06/2003 13:00&lt;BR /&gt;       229 30/06/2003 14:00&lt;BR /&gt;       230 30/06/2003 15:00&lt;BR /&gt;&lt;BR /&gt;10 rows selected.&lt;BR /&gt;&lt;BR /&gt;Elapsed: 00:00:00.16&lt;BR /&gt;yd@MYDB.MU&amp;gt; &lt;BR /&gt;&lt;BR /&gt;Am sure other solutions do exits if you use Analytic Functions.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Wed, 23 Jul 2003 10:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030849#M910281</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-07-23T10:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030850#M910282</link>
      <description>Hi Yogee!&lt;BR /&gt;&lt;BR /&gt;Thanks man, You pointed me in the right directiorn!&lt;BR /&gt;&lt;BR /&gt;Most appraciated!</description>
      <pubDate>Wed, 23 Jul 2003 10:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aggregation-question/m-p/3030850#M910282</guid>
      <dc:creator>Edgar_10</dc:creator>
      <dc:date>2003-07-23T10:21:15Z</dc:date>
    </item>
  </channel>
</rss>

