<?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: Creating a query that will return specific days</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/creating-a-query-that-will-return-specific-days/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-query-that-will-return-specific-days/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 07:20:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: mcp111</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-query-that-will-return-specific-days/#comment-44732</link>
		<dc:creator>mcp111</dc:creator>
		<pubDate>Wed, 01 Sep 2004 14:20:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-44732</guid>
		<description><![CDATA[Note that the NEXT_DAY function is specific to Oracle.]]></description>
		<content:encoded><![CDATA[<p>Note that the NEXT_DAY function is specific to Oracle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mwphdata</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-query-that-will-return-specific-days/#comment-44733</link>
		<dc:creator>mwphdata</dc:creator>
		<pubDate>Wed, 01 Sep 2004 13:16:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-44733</guid>
		<description><![CDATA[Fantastic, thanks for the quick responses. I will try them out...

Regards
Lou]]></description>
		<content:encoded><![CDATA[<p>Fantastic, thanks for the quick responses. I will try them out&#8230;</p>
<p>Regards<br />
Lou</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevewaltz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-query-that-will-return-specific-days/#comment-44734</link>
		<dc:creator>stevewaltz</dc:creator>
		<pubDate>Wed, 01 Sep 2004 12:59:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-44734</guid>
		<description><![CDATA[The NEXT_DAY date function should allow you to determine the dates for the calendar and fiscal years. A little adjustment is required because NEXT_DAY will not return the argument date specified, even if it is the day of the week argument provided (tuesday, in this case). This SQL subtracts 1 to go back to the last day of the previous month. I could have specified &#039;20031231&#039; and &#039;20040531&#039; in determining the calendar year and fiscal year dates respectively and would not have had to subtract 1 within the NEXT_DAY date argument.

SELECT NEXT_DAY(TO_DATE(&#039;20040101&#039;,&#039;YYYYMMDD&#039;) - 1,&#039;TUESDAY&#039;) + 7 &quot;Calendar Year&quot;
     FROM DUAL;

SELECT NEXT_DAY(TO_DATE(&#039;20040601&#039;,&#039;YYYYMMDD&#039;) - 1,&#039;TUESDAY&#039;) + 28 &quot;Fiscal Year&quot;
     FROM DUAL;]]></description>
		<content:encoded><![CDATA[<p>The NEXT_DAY date function should allow you to determine the dates for the calendar and fiscal years. A little adjustment is required because NEXT_DAY will not return the argument date specified, even if it is the day of the week argument provided (tuesday, in this case). This SQL subtracts 1 to go back to the last day of the previous month. I could have specified &#8217;20031231&#8242; and &#8217;20040531&#8242; in determining the calendar year and fiscal year dates respectively and would not have had to subtract 1 within the NEXT_DAY date argument.</p>
<p>SELECT NEXT_DAY(TO_DATE(&#8217;20040101&#8242;,&#8217;YYYYMMDD&#8217;) &#8211; 1,&#8217;TUESDAY&#8217;) + 7 &#8220;Calendar Year&#8221;<br />
     FROM DUAL;</p>
<p>SELECT NEXT_DAY(TO_DATE(&#8217;20040601&#8242;,&#8217;YYYYMMDD&#8217;) &#8211; 1,&#8217;TUESDAY&#8217;) + 28 &#8220;Fiscal Year&#8221;<br />
     FROM DUAL;</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 6/9 queries in 0.013 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-18 07:26:09 -->