<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ORACLE Question &#8211; Split data in 90 days chunk</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 01:19:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: ORACLE Question &#8211; Split data in 90 days chunk (Q/A) &#124; Seek The Sun Slowly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/#comment-108161</link>
		<dc:creator>ORACLE Question &#8211; Split data in 90 days chunk (Q/A) &#124; Seek The Sun Slowly</dc:creator>
		<pubDate>Fri, 08 Jun 2012 06:11:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-108161</guid>
		<description><![CDATA[[...] Address: http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/        (0) Comments   Read [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Address: <a href="http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/" rel="nofollow">http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/</a>        (0) Comments   Read [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mroracle</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/#comment-37839</link>
		<dc:creator>mroracle</dc:creator>
		<pubDate>Fri, 28 Oct 2005 10:04:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-37839</guid>
		<description><![CDATA[You didn&#039;t mention what version on Oracle, but I think you are looking for a CASE statement.  I believe it might be a version 9i feature.  Here is a sample piece of code:

SQL&gt; r
  1  select case
  2             when creation_date_time between to_date(&#039;05-JAN-2005&#039;) and to_date(&#039;05-JAN-2005&#039;)+90
  3                     then 1
  4             when creation_date_time between to_date(&#039;10-MAY-2005&#039;) and to_date(&#039;10-MAY-2005&#039;)+90
  5                     then 2
  6             else 3
  7         end date_grouping
  8     , count(*)
  9   from mtg_partner
 10   group by case
 11      when creation_date_time between to_date(&#039;05-JAN-2005&#039;) and to_date(&#039;05-JAN-2005&#039;)+90
 12     then 1
 13      when creation_date_time between to_date(&#039;10-MAY-2005&#039;) and to_date(&#039;10-MAY-2005&#039;)+90
 14     then 2
 15      else 3
 16* end

DATE_GROUPING   COUNT(*)
------------- ----------
            1         63
            2         57
            3        229

3 rows selected.

I hope this helps!

((MrO))
]]></description>
		<content:encoded><![CDATA[<p>You didn&#8217;t mention what version on Oracle, but I think you are looking for a CASE statement.  I believe it might be a version 9i feature.  Here is a sample piece of code:</p>
<p>SQL&gt; r<br />
  1  select case<br />
  2             when creation_date_time between to_date(&#8217;05-JAN-2005&#8242;) and to_date(&#8217;05-JAN-2005&#8242;)+90<br />
  3                     then 1<br />
  4             when creation_date_time between to_date(&#8217;10-MAY-2005&#8242;) and to_date(&#8217;10-MAY-2005&#8242;)+90<br />
  5                     then 2<br />
  6             else 3<br />
  7         end date_grouping<br />
  8     , count(*)<br />
  9   from mtg_partner<br />
 10   group by case<br />
 11      when creation_date_time between to_date(&#8217;05-JAN-2005&#8242;) and to_date(&#8217;05-JAN-2005&#8242;)+90<br />
 12     then 1<br />
 13      when creation_date_time between to_date(&#8217;10-MAY-2005&#8242;) and to_date(&#8217;10-MAY-2005&#8242;)+90<br />
 14     then 2<br />
 15      else 3<br />
 16* end</p>
<p>DATE_GROUPING   COUNT(*)<br />
&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
            1         63<br />
            2         57<br />
            3        229</p>
<p>3 rows selected.</p>
<p>I hope this helps!</p>
<p>((MrO))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: structsound</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-question-split-data-in-90-days-chunk/#comment-37840</link>
		<dc:creator>structsound</dc:creator>
		<pubDate>Fri, 28 Oct 2005 09:51:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-37840</guid>
		<description><![CDATA[You can use an analytic query to get the sums
select qty, date, sum(qty) over (order by date range between current row and interval &#039;90&#039; day following) 90daysum from.....

then you&#039;ll have to work an outer query to only show the dates within the 90 day span--probably using lag and lead.  AskTom has some good examples, as well as the Oracle Data Warehousing Guide documentation]]></description>
		<content:encoded><![CDATA[<p>You can use an analytic query to get the sums<br />
select qty, date, sum(qty) over (order by date range between current row and interval &#8217;90&#8242; day following) 90daysum from&#8230;..</p>
<p>then you&#8217;ll have to work an outer query to only show the dates within the 90 day span&#8211;probably using lag and lead.  AskTom has some good examples, as well as the Oracle Data Warehousing Guide documentation</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.035 seconds using memcached
Object Caching 295/301 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 02:59:49 -->