<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eddie Awad’s Blog - Latest Comments in Cool Undocumented OVERLAPS Predicate</title><link>http://awads.disqus.com/</link><description>News, views, tips and tricks on Oracle and other fun stuff</description><atom:link href="https://awads.disqus.com/cool_undocumented_overlaps_predicate/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 13 Jun 2008 15:15:44 -0000</lastBuildDate><item><title>Re: Cool Undocumented OVERLAPS Predicate</title><link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/#comment-3659554</link><description>&lt;p&gt;@Laurent: I'm assuming that the WM_OVERLAPS needs the Workspace Manager to be installed/enabled.&lt;/p&gt;&lt;p&gt;@John: OVERLAP_CNT seems useful. Feel free to share the link to the code on your website.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Fri, 13 Jun 2008 15:15:44 -0000</pubDate></item><item><title>Re: Cool Undocumented OVERLAPS Predicate</title><link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/#comment-3659553</link><description>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Flack</dc:creator><pubDate>Fri, 13 Jun 2008 08:09:37 -0000</pubDate></item><item><title>Re: Cool Undocumented OVERLAPS Predicate</title><link>http://awads.net/wp/2008/06/12/cool-undocumented-overlaps-predicate/#comment-3659552</link><description>&lt;p&gt;WM_OVERLAPS is documented&lt;/p&gt;&lt;p&gt;SELECT *&lt;br&gt;FROM dual&lt;br&gt;WHERE WM_OVERLAPS(WM_PERIOD(add_months(sysdate, -6), DATE '2008-08-08'),&lt;br&gt;WM_PERIOD(sysdate - 180, sysdate+180))=1;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laurent Schneider</dc:creator><pubDate>Fri, 13 Jun 2008 01:49:12 -0000</pubDate></item></channel></rss>