<?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 table db query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787754#M784167</link>
    <description>I have a bank table that looks like below&lt;BR /&gt;Denom   Serial   created&lt;BR /&gt;$10     333111   10-MAY-06&lt;BR /&gt;$10     111888   09-APR-06&lt;BR /&gt;$5      555666   01-JAN-89&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$20     666877   09-SEP-98&lt;BR /&gt;&lt;BR /&gt;I selected number of denominations created&lt;BR /&gt;"select distinct(denom),count(*) from bank which is ok.&lt;BR /&gt;Now I wanted to select denom, the number of denom created yesterday, &amp;amp; total denoms created as of yesterday in single output. Can someone help me here . thanks in advance...&lt;BR /&gt;</description>
    <pubDate>Sun, 14 May 2006 04:50:06 GMT</pubDate>
    <dc:creator>Ferdi Castro</dc:creator>
    <dc:date>2006-05-14T04:50:06Z</dc:date>
    <item>
      <title>table db query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787754#M784167</link>
      <description>I have a bank table that looks like below&lt;BR /&gt;Denom   Serial   created&lt;BR /&gt;$10     333111   10-MAY-06&lt;BR /&gt;$10     111888   09-APR-06&lt;BR /&gt;$5      555666   01-JAN-89&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$20     666877   09-SEP-98&lt;BR /&gt;&lt;BR /&gt;I selected number of denominations created&lt;BR /&gt;"select distinct(denom),count(*) from bank which is ok.&lt;BR /&gt;Now I wanted to select denom, the number of denom created yesterday, &amp;amp; total denoms created as of yesterday in single output. Can someone help me here . thanks in advance...&lt;BR /&gt;</description>
      <pubDate>Sun, 14 May 2006 04:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787754#M784167</guid>
      <dc:creator>Ferdi Castro</dc:creator>
      <dc:date>2006-05-14T04:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: table db query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787755#M784168</link>
      <description>Hmmmm.  I think I understand what you are asking for, so try something like this.&lt;BR /&gt;&lt;BR /&gt;select denom, count(*) from back where created &amp;gt; trunc(sysdate)-1 and created &amp;lt; trunc(sysdate);&lt;BR /&gt;&lt;BR /&gt;That should get you only yesterday (by that, I mean 12am to 12am).  Also, I'm assuming Oracle in this case.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Sun, 14 May 2006 11:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787755#M784168</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2006-05-14T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: table db query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787756#M784169</link>
      <description>Hi Ferdi,&lt;BR /&gt;&lt;BR /&gt;As Brian mentioned you can use the sysdate to get the the previous / next dayas records.&lt;BR /&gt;&lt;BR /&gt;For eg:- This query will give you records &lt;BR /&gt;$5 555666   ---- which are before January 2006.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; SELECT distinct denom, count(*() &lt;BR /&gt;     FROM bank&lt;BR /&gt;     WHERE created &amp;lt; '01-JAN-2006'&lt;BR /&gt;     GROUP BY DEMON;&lt;BR /&gt;&lt;BR /&gt;For yesterday use sysdate -1&lt;BR /&gt;&lt;BR /&gt;To manupulate the datetime use the to_char(created,'DD-MON-YYYY:HH:MI:SS')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
      <pubDate>Sun, 14 May 2006 21:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/table-db-query/m-p/3787756#M784169</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2006-05-14T21:17:53Z</dc:date>
    </item>
  </channel>
</rss>

