 




<?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: need help with measuring dates</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 03:56:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: YOUSAFALIBS</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-111257</link>
		<dc:creator>YOUSAFALIBS</dc:creator>
		<pubDate>Wed, 19 Sep 2012 11:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-111257</guid>
		<description><![CDATA[createdt &gt; (sysdate-20)]]></description>
		<content:encoded><![CDATA[<p>createdt &gt; (sysdate-20)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110548</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 27 Aug 2012 23:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110548</guid>
		<description><![CDATA[Also, change the order of your dates to define the range.&#160;

Instead of &lt;strong&gt;&#039;between sysdate and sysdate-20&#039; &lt;/strong&gt;use &lt;strong&gt;&#039;between sysdate-20 and sysdate&#039;&lt;/strong&gt;.]]></description>
		<content:encoded><![CDATA[<p>Also, change the order of your dates to define the range.&nbsp;</p>
<p>Instead of <strong>&#8216;between sysdate and sysdate-20&#8242; </strong>use <strong>&#8216;between sysdate-20 and sysdate&#8217;</strong>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110547</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 27 Aug 2012 23:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110547</guid>
		<description><![CDATA[&lt;em&gt;&quot;Also, you are subtracting 20 days, not years (date arithmetics work on days)&quot;&lt;/em&gt;

Just ignore this. Not sure why I thought you were trying to substract 20 years...]]></description>
		<content:encoded><![CDATA[<p><em>&#8220;Also, you are subtracting 20 days, not years (date arithmetics work on days)&#8221;</em></p>
<p>Just ignore this. Not sure why I thought you were trying to substract 20 years&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110546</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 27 Aug 2012 23:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110546</guid>
		<description><![CDATA[Why do you need to convert dates to char ?Also, you are subtracting 20 days, not years (date arithmetics work on days)]]></description>
		<content:encoded><![CDATA[<p>Why do you need to convert dates to char ?Also, you are subtracting 20 days, not years (date arithmetics work on days)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110541</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Mon, 27 Aug 2012 20:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110541</guid>
		<description><![CDATA[If CREATEDT is a date column, don&#039;t use TO_CHAR() to convert it to a text string in &#039;DD/MM/YYYY&#039; format. And don&#039;t convert SYSDATE to a text string in &#039;DD/MM/YYYY&#039; format. As soon as you convert to those formats, you mostly make it impossible to compare for a date range. Leave the values alone and just compare them directly to each other.&#160; -- Tom]]></description>
		<content:encoded><![CDATA[<p>If CREATEDT is a date column, don&#8217;t use TO_CHAR() to convert it to a text string in &#8216;DD/MM/YYYY&#8217; format. And don&#8217;t convert SYSDATE to a text string in &#8216;DD/MM/YYYY&#8217; format. As soon as you convert to those formats, you mostly make it impossible to compare for a date range. Leave the values alone and just compare them directly to each other.&nbsp; &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigKat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110540</link>
		<dc:creator>BigKat</dc:creator>
		<pubDate>Mon, 27 Aug 2012 20:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110540</guid>
		<description><![CDATA[that is createdt between...]]></description>
		<content:encoded><![CDATA[<p>that is createdt between&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigKat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110539</link>
		<dc:creator>BigKat</dc:creator>
		<pubDate>Mon, 27 Aug 2012 20:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/need-help-with-measuring-dates/#comment-110539</guid>
		<description><![CDATA[try using: 
between current_date and current_date - 20 days]]></description>
		<content:encoded><![CDATA[<p>try using:<br />
between current_date and current_date &#8211; 20 days</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.027 seconds using memcached
Object Caching 351/357 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 04:12:58 -->