<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: OC Appendix</title>
	<atom:link href="http://jonathanlewis.wordpress.com/oracle-core/oc-appendix/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Mon, 20 May 2013 17:10:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Tycho Schoenmaker</title>
		<link>http://jonathanlewis.wordpress.com/oracle-core/oc-appendix/#comment-52135</link>
		<dc:creator><![CDATA[Tycho Schoenmaker]]></dc:creator>
		<pubDate>Sat, 15 Dec 2012 16:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?page_id=7148#comment-52135</guid>
		<description><![CDATA[Jonathan,
Well I developed the opposite query years ago to be able to change the stamp (%t) in rman pieces into a real timestamps and seeing it shift when switching to a new month. So there was nobody to suggest it I found it myself.
Regards,
Tycho]]></description>
		<content:encoded><![CDATA[<p>Jonathan,<br />
Well I developed the opposite query years ago to be able to change the stamp (%t) in rman pieces into a real timestamps and seeing it shift when switching to a new month. So there was nobody to suggest it I found it myself.<br />
Regards,<br />
Tycho</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/oracle-core/oc-appendix/#comment-52092</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 13 Dec 2012 18:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?page_id=7148#comment-52092</guid>
		<description><![CDATA[Tycho,

Thanks for the suggestion.
Like so many good ideas - it&#039;s so obvious AFTER someone has suggested it.]]></description>
		<content:encoded><![CDATA[<p>Tycho,</p>
<p>Thanks for the suggestion.<br />
Like so many good ideas &#8211; it&#8217;s so obvious AFTER someone has suggested it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tycho Schoenmaker</title>
		<link>http://jonathanlewis.wordpress.com/oracle-core/oc-appendix/#comment-51631</link>
		<dc:creator><![CDATA[Tycho Schoenmaker]]></dc:creator>
		<pubDate>Sun, 25 Nov 2012 10:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?page_id=7148#comment-51631</guid>
		<description><![CDATA[Dear mister Lewis,

Thank you very much for bringing out this book.
I have a small comment about the query on page 241 which can be improved so no modification is necessary any more.
Basically the start time and end time can be determind by:
 counting the months between the start of 1988 and the start of the current month and convert this to seconds each month having 31 days (so times 31, times the amount of seconds in a day) and added to this the number of seconds between the start of the month and the current time.

Regards,

Tycho Schoenmaker
[sourcecode gutter=&quot;false&quot;]
select (floor(months_between ((sysdate-10/(24*60)), to_date (&#039;1988-01-01&#039;,&#039;yyyy-mm-dd&#039;) )))*31 *24*60*60
      +  ((sysdate -10/(24*60))- to_date(to_char((sysdate-10/(24*60)), &#039;yyyy-mm&#039;)&#124;&#124;&#039;-01&#039;,&#039;YYYY-MM-DD&#039;))*24*60*60 start_time,
     (floor(months_between ((sysdate-5/(24*60)), to_date (&#039;1988-01-01&#039;,&#039;yyyy-mm-dd&#039;) )))*31 *24*60*60
      +  ((sysdate -5/(24*60))- to_date(to_char((sysdate-5/(24*60)), &#039;yyyy-mm&#039;)&#124;&#124;&#039;-01&#039;,&#039;YYYY-MM-DD&#039;))*24*60*60 end_time
from dual
/

[/sourcecode]
]]></description>
		<content:encoded><![CDATA[<p>Dear mister Lewis,</p>
<p>Thank you very much for bringing out this book.<br />
I have a small comment about the query on page 241 which can be improved so no modification is necessary any more.<br />
Basically the start time and end time can be determind by:<br />
 counting the months between the start of 1988 and the start of the current month and convert this to seconds each month having 31 days (so times 31, times the amount of seconds in a day) and added to this the number of seconds between the start of the month and the current time.</p>
<p>Regards,</p>
<p>Tycho Schoenmaker</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
select (floor(months_between ((sysdate-10/(24*60)), to_date ('1988-01-01','yyyy-mm-dd') )))*31 *24*60*60
      +  ((sysdate -10/(24*60))- to_date(to_char((sysdate-10/(24*60)), 'yyyy-mm')||'-01','YYYY-MM-DD'))*24*60*60 start_time,
     (floor(months_between ((sysdate-5/(24*60)), to_date ('1988-01-01','yyyy-mm-dd') )))*31 *24*60*60
      +  ((sysdate -5/(24*60))- to_date(to_char((sysdate-5/(24*60)), 'yyyy-mm')||'-01','YYYY-MM-DD'))*24*60*60 end_time
from dual
/

</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
