<?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: Calculate next (this) friday date with pl/sql &#8211; hide out!</title>
	<atom:link href="http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out</link>
	<description>Oracle, PL/SQL, PHP, Autos, Bungalow-Hotels and more ...</description>
	<lastBuildDate>Sun, 11 Jul 2010 00:41:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ribx</title>
		<link>http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out/comment-page-1#comment-1906</link>
		<dc:creator>ribx</dc:creator>
		<pubDate>Wed, 19 May 2010 07:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out#comment-1906</guid>
		<description>there is a small mistake, because saturdays are considered same week. solution is to add 1 day to the date you wanna check:


SELECT 
	DATE(
		DATE_ADD(
			&#039;2010-05-19&#039; + INTERVAL 1 DAY, 
			INTERVAL 6 - DAYOFWEEK(&#039;2010-05-19&#039; + INTERVAL 1 DAY) DAY
		)
	)
</description>
		<content:encoded><![CDATA[<p>there is a small mistake, because saturdays are considered same week. solution is to add 1 day to the date you wanna check:</p>
<p>SELECT<br />
	DATE(<br />
		DATE_ADD(<br />
			&#8216;2010-05-19&#8242; + INTERVAL 1 DAY,<br />
			INTERVAL 6 &#8211; DAYOFWEEK(&#8216;2010-05-19&#8242; + INTERVAL 1 DAY) DAY<br />
		)<br />
	)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ribx</title>
		<link>http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out/comment-page-1#comment-1904</link>
		<dc:creator>ribx</dc:creator>
		<pubDate>Wed, 19 May 2010 07:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out#comment-1904</guid>
		<description>SELECT DATE(DATE_ADD(&#039;2010-05-21&#039;, INTERVAL 6 - DAYOFWEEK(&#039;2010-05-21&#039;) DAY))</description>
		<content:encoded><![CDATA[<p>SELECT DATE(DATE_ADD(&#8216;2010-05-21&#8242;, INTERVAL 6 &#8211; DAYOFWEEK(&#8216;2010-05-21&#8242;) DAY))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cas</title>
		<link>http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out/comment-page-1#comment-1297</link>
		<dc:creator>cas</dc:creator>
		<pubDate>Tue, 10 Feb 2009 23:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.serpland.com/oracle/calculate-next-this-friday-date-with-plsql-hide-out#comment-1297</guid>
		<description>I&#039;m looking for code to determine the &quot;2nd Friday of the month&quot; and I found this:

select next_day(sysdate,&#039;FRIDAY&#039;) as NEXT_DAY from dual

however, this prints the next Friday, not the 2nd Friday.  

Thought I&#039;d share.</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking for code to determine the &#8220;2nd Friday of the month&#8221; and I found this:</p>
<p>select next_day(sysdate,&#8217;FRIDAY&#8217;) as NEXT_DAY from dual</p>
<p>however, this prints the next Friday, not the 2nd Friday. </p>
<p>Thought I&#8217;d share.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
