<?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"
	>
<channel>
	<title>Comments on: Cool Undocumented OVERLAPS Predicate</title>
	<atom:link href="http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<pubDate>Thu, 20 Nov 2008 20:17:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/#comment-52155</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Fri, 13 Jun 2008 19:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=732#comment-52155</guid>
		<description>@Laurent: I'm assuming that the WM_OVERLAPS needs the Workspace Manager to be installed/enabled.

@John: OVERLAP_CNT seems useful. Feel free to share the link to the code on your website.</description>
		<content:encoded><![CDATA[<p>@Laurent: I&#8217;m assuming that the WM_OVERLAPS needs the Workspace Manager to be installed/enabled.</p>
<p>@John: OVERLAP_CNT seems useful. Feel free to share the link to the code on your website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Flack</title>
		<link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/#comment-52154</link>
		<dc:creator>John Flack</dc:creator>
		<pubDate>Fri, 13 Jun 2008 12:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=732#comment-52154</guid>
		<description>For many years I have had an OVERLAP_CNT(start_date1 date, end_date1 date, start_date2 date, end_date2 date) function in my CMP package, which is available on my website. This returns a 1 if the date range represented by the first two dates overlaps the date range represented by the second two dates, and a 0 if it does not. This allows you to use it in a sum() to count how many rows have an overlapping date range, or a where clause.</description>
		<content:encoded><![CDATA[<p>For many years I have had an OVERLAP_CNT(start_date1 date, end_date1 date, start_date2 date, end_date2 date) function in my CMP package, which is available on my website. This returns a 1 if the date range represented by the first two dates overlaps the date range represented by the second two dates, and a 0 if it does not. This allows you to use it in a sum() to count how many rows have an overlapping date range, or a where clause.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/#comment-52152</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Fri, 13 Jun 2008 05:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=732#comment-52152</guid>
		<description>WM_OVERLAPS is documented

SELECT *
FROM dual
WHERE WM_OVERLAPS(WM_PERIOD(add_months(sysdate, -6), DATE '2008-08-08'),
WM_PERIOD(sysdate - 180, sysdate+180))=1;</description>
		<content:encoded><![CDATA[<p>WM_OVERLAPS is documented</p>
<p>SELECT *<br />
FROM dual<br />
WHERE WM_OVERLAPS(WM_PERIOD(add_months(sysdate, -6), DATE &#8216;2008-08-08&#8242;),<br />
WM_PERIOD(sysdate - 180, sysdate+180))=1;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
