<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PL/SQL</title>
	<atom:link href="http://hicamel.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hicamel.wordpress.com</link>
	<description>SQL and PL/SQL code examples</description>
	<lastBuildDate>Sat, 06 Oct 2007 23:49:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='hicamel.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7f99780e2655db95527ec597b265bea8?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>PL/SQL</title>
		<link>http://hicamel.wordpress.com</link>
	</image>
			<item>
		<title>I Give Up! Goodbye WordPress hello Blogger.</title>
		<link>http://hicamel.wordpress.com/2007/09/22/i-give-up-goodbye-wordpress-hello-blogger/</link>
		<comments>http://hicamel.wordpress.com/2007/09/22/i-give-up-goodbye-wordpress-hello-blogger/#comments</comments>
		<pubDate>Sat, 22 Sep 2007 19:35:19 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/09/22/i-give-up-goodbye-wordpress-hello-blogger/</guid>
		<description><![CDATA[After countless hours of trying to get code samples from TOAD to WordPress without corruption, I give up!
I will be migrating my articles from WordPress to http://plsqlnotes.blogspot.com
If you are interested in my TOAD to Blogspot solution,  give a comment at Blogspot.
Thanks for all the visits.
Mike
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=60&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After countless hours of trying to get code samples from TOAD to WordPress without corruption, I give up!</p>
<p>I will be migrating my articles from WordPress to <a href="http://plsqlnotes.blogspot.com">http://plsqlnotes.blogspot.com</a></p>
<p>If you are interested in my TOAD to Blogspot solution,  give a comment at Blogspot.<br />
Thanks for all the visits.</p>
<p>Mike</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=60&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/09/22/i-give-up-goodbye-wordpress-hello-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>PL/SQL Package Structures</title>
		<link>http://hicamel.wordpress.com/2007/08/20/plsql-package-structures/</link>
		<comments>http://hicamel.wordpress.com/2007/08/20/plsql-package-structures/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 00:35:10 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[package structure]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/08/20/plsql-package-structures/</guid>
		<description><![CDATA[I'VE MOVED to BLOGSPOT. This link will take you directly to the article on PL/SQL Package Structures

http://plsqlnotes.blogspot.com

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=57&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><pre><strong>I'VE MOVED to BLOGSPOT. This link will take you directly to the article on PL/SQL Package Structures</strong></pre>
<pre></pre>
<p><strong><a href="http://plsqlnotes.blogspot.com/2007/09/basics-of-plsql-package-structures-this_24.html" title="PL/SQL Package Structures">http://plsqlnotes.blogspot.com</a></strong></p>
<pre></pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/57/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/57/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=57&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/08/20/plsql-package-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Dynamic Sql to work around PL/SQL bugs</title>
		<link>http://hicamel.wordpress.com/2007/07/20/using-dynamic-sql-to-work-around-plsql-bugs/</link>
		<comments>http://hicamel.wordpress.com/2007/07/20/using-dynamic-sql-to-work-around-plsql-bugs/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 19:17:58 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[ORA-12714]]></category>
		<category><![CDATA[TABLE function with nvarchar2]]></category>
		<category><![CDATA[nvarchar2]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/07/20/using-dynamic-sql-to-work-around-plsql-bugs/</guid>
		<description><![CDATA[This article has been moved to plsqlnotes.blogspot.com

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=55&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>This article has been moved to <a href="http://plsqlnotes.blogspot.com/2007/09/using-dynamic-sql-to-work-around-plsql.html">plsqlnotes.blogspot.com</a><br />
</strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=55&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/07/20/using-dynamic-sql-to-work-around-plsql-bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Application Cache Refresh Call-back Trigger</title>
		<link>http://hicamel.wordpress.com/2007/06/05/application-cache-refresh-call-back-trigger/</link>
		<comments>http://hicamel.wordpress.com/2007/06/05/application-cache-refresh-call-back-trigger/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 22:41:57 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[HTTPURITYPE]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[UTL_HTTP]]></category>
		<category><![CDATA[UTL_HTTP.set_transfer_timeout]]></category>
		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/06/05/application-cache-refresh-call-back-trigger/</guid>
		<description><![CDATA[This article has move to
http://plsqlnotes.blogspot.com/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=49&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This article has move to</p>
<p><a href="http://plsqlnotes.blogspot.com/2007/10/call-back-trigger-assume-you-have-many.html" title="Cache Refresh Call-back Trigger">http://plsqlnotes.blogspot.com/</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=49&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/06/05/application-cache-refresh-call-back-trigger/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Model for generating CSV by Partition</title>
		<link>http://hicamel.wordpress.com/2007/05/30/using-model-for-generating-csv-by-partition/</link>
		<comments>http://hicamel.wordpress.com/2007/05/30/using-model-for-generating-csv-by-partition/#comments</comments>
		<pubDate>Wed, 30 May 2007 17:48:51 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[CSV]]></category>
		<category><![CDATA[MODEL]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/05/30/using-model-for-generating-csv-by-partition/</guid>
		<description><![CDATA[This article has moved to

plsqlnotes.blogspot.com
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=45&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>This article has moved to<br />
<a href="http://plsqlnotes.blogspot.com/2007/09/using-model-for-generating-csv-by_2227.html#links"><br />
plsqlnotes.blogspot.com</a></strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=45&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/05/30/using-model-for-generating-csv-by-partition/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Incremential elimination using predicate negation</title>
		<link>http://hicamel.wordpress.com/2007/05/15/incremential-elimination-using-predicate-negation/</link>
		<comments>http://hicamel.wordpress.com/2007/05/15/incremential-elimination-using-predicate-negation/#comments</comments>
		<pubDate>Tue, 15 May 2007 04:28:45 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/05/15/incremential-elimination-using-predicate-negation/</guid>
		<description><![CDATA[This article has moved to
Mike&#8217;s PL/SQL Notes
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=44&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This article has moved to</p>
<p><a href="http://plsqlnotes.blogspot.com/2007/10/incremental-elimination-using-predicate.html#links">Mike&#8217;s PL/SQL Notes</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=44&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/05/15/incremential-elimination-using-predicate-negation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Which where-clause predicates were false?</title>
		<link>http://hicamel.wordpress.com/2007/05/07/which-where-clause-predicates-were-false/</link>
		<comments>http://hicamel.wordpress.com/2007/05/07/which-where-clause-predicates-were-false/#comments</comments>
		<pubDate>Mon, 07 May 2007 01:53:38 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/05/07/which-where-clause-predicates-were-false/</guid>
		<description><![CDATA[This may be obvious to most people who read this blog but I&#8217;m going to post it anyway.
Let&#8217;s suppose you have a requirement to match organ donors to potential recipients. Each recipient has a complex set of requirements. For recipient 555  it has to be a liver, and the blood type must be ABNeg [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=42&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This may be obvious to most people who read this blog but I&#8217;m going to post it anyway.</p>
<p>Let&#8217;s suppose you have a requirement to match organ donors to potential recipients. Each recipient has a complex set of requirements. For recipient 555  it has to be a liver, and the blood type must be ABNeg and the donor must be less than 60 years old or could be less than 70 if he was a non drinker. You decide to express the criteria as a table of predicates and operators which can be constructed into a WHERE clause. For example, WHERE organ = &#8216;liver&#8217; and blood_type = &#8216;AB-&#8221; and (age &lt; 60 or (age &lt; 70 and drinker = &#8216;No&#8217; ))</p>
<p>When a new organ comes in, an organ record is written to the t_organ table and assigned a unique sequential numeric key.</p>
<p>Your program iterates through the the recipients table and tests each recipient record  against the organ record to see if there is a match. The recipient record has 2 columns, recipient_id and criteria_nested_table. The criteria_nested_table column contains Boolean criteria and operators that will allow you to construct a where clause at run time.<br />
Your pseudo code looks something like:</p>
<ul>
<li><strong><em>Get new donor record</em></strong></li>
<li><strong><em>For each recipient record</em> </strong></li>
</ul>
<blockquote>
<ul>
<li><strong><em>      construct the where_clause using the recipient&#8217;s criteria records </em></strong></li>
<li><strong><em>      Using dynamic SQL, execute recipient.where_clause against donor record.</em></strong></li>
<li><strong>      If matched, celebrate else try next recipient</strong></li>
</ul>
</blockquote>
<p>A month later, your program is working perfectly and donors are being matched with recipients.  Then, one day a doctor asks you, &#8220;Why didn&#8217;t recipient 123 match with   donor record number 789&#8243;? You don&#8217;t know exactly which criteria cause the no-match situation. So, now you need to enhance the system.</p>
<p>You think about it for a while and conclude that, if you need to determine which criteria did not match, you will need to test each criteria independently. That means executing a where clause for each predicate.</p>
<p>Instead of SELECT &#8216;MATCHED&#8217; from t_organ where  key_id = 8373  and organ = &#8216;liver&#8217; and blood_type = &#8216;AB-&#8217;;</p>
<p>You will now need to generate and execute</p>
<p>SELECT &#8216;MATCHED&#8217; from t_organ where  key_id = 8373  and organ = &#8216;liver&#8217;;</p>
<p>SELECT &#8216;MATCHED&#8217; from t_organ where  key_id = 8373  and blood_type = &#8216;AB-&#8217;;</p>
<p>If all of the generated SELECT statements match, then the recipient matches the donor and you will be able to record which criteria, if any, failed.</p>
<p>But, the criteria is actually much more complex and sometimes involves 20 predicates. That would mean 20 SELECT statements to get the job done.  Performance is already a problem, so clearly, this is never going to work. Then it hits you like a ton of lead bricks &#8230;. the CASE statement! What if I move my where_clause into a CASE statement.</p>
<p>The following example shows where I am going with this.</p>
<p>drop table t;<br />
create table t (thekey integer,a integer,b integer,c integer, d varchar2(20));<br />
insert into t values (10,1,2,3,&#8217;this&#8217;);<br />
insert into t values (20,1,2,4,&#8217;that&#8217;);<br />
insert into t values (30,1,3,5,&#8217;same&#8217;);<br />
insert into t values (40,2,2,3,&#8217;other&#8217;);<br />
commit;</p>
<p><span style="font-weight:bold;">&#8211; THE OLD WAY (do the same for thekey =20,30,40 also)</span></p>
<p>select &#8216;matched&#8217;</p>
<p>from t where thekey = 10 and a = 1 and b = 2 and (c = 3 or d = &#8217;same&#8217;);</p>
<p>if rec_not_found then no match</p>
<p style="font-weight:bold;">&#8211; THE NEW WAY (do the same for thekey =20,30,40 also)</p>
<p>select thekey,<br />
case when a = 1 then &#8216;TRUE&#8217; else &#8216;FALSE&#8217; end a,<br />
case when b = 2 then &#8216;TRUE&#8217; else &#8216;FALSE&#8217; end b,<br />
case when  c = 3 or d = &#8217;same&#8217; then &#8216;TRUE&#8217; else &#8216;FALSE&#8217; end c_or_d,<br />
case when a = 1 and b = 2 and (c = 3 or d = &#8217;same&#8217;) then &#8216;TRUE&#8217; else &#8216;FALSE&#8217; end overall<br />
from t</p>
<p>where thekey = 10;</p>
<p>If overall = &#8216;FALSE&#8217; then no match.</p>
<p>So, now I can easily record which predicates were true and which were false without making multiple trips to the database. Note that I don&#8217;t try to split out the OR&#8217;d criteria, but treat it as a single predicate. Fortunately, this is good enough.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=42&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/05/07/which-where-clause-predicates-were-false/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Powermultiset applied to groups</title>
		<link>http://hicamel.wordpress.com/2007/05/03/powermultiset-applied-to-groups/</link>
		<comments>http://hicamel.wordpress.com/2007/05/03/powermultiset-applied-to-groups/#comments</comments>
		<pubDate>Thu, 03 May 2007 17:59:46 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[CAST]]></category>
		<category><![CDATA[COLLECT]]></category>
		<category><![CDATA[XMLAGG]]></category>
		<category><![CDATA[XMLELEMENT]]></category>
		<category><![CDATA[powermultiset]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/05/03/powermultiset-applied-to-groups/</guid>
		<description><![CDATA[This article has moved to
Mike&#8217;s PL/SQL Notes 
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=35&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This article has moved to</p>
<p><a href="http://plsqlnotes.blogspot.com/2007/10/powermultiset-to-find-combinations-part.html#links" title="Mike's PL/SQL Notes">Mike&#8217;s PL/SQL Notes </a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=35&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/05/03/powermultiset-applied-to-groups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
		<item>
		<title>Analytics Performance Comparison</title>
		<link>http://hicamel.wordpress.com/2007/04/16/analytics-performance-comparison/</link>
		<comments>http://hicamel.wordpress.com/2007/04/16/analytics-performance-comparison/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 21:01:55 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[ANALYTICS]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[execution plan]]></category>
		<category><![CDATA[explain plan]]></category>
		<category><![CDATA[partitioned by]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[row_number]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/04/16/analytics-performance-comparison/</guid>
		<description><![CDATA[In this case Analytic SQL ran 99% faster than a more traditional approach.
The SQL problem being solved in the examples is getting the last 3 of each group.
This is my first attempt at using images for this blog. If you come to the web site, the images appear
somewhat reasonable sized. If you are viewing this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=18&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>In this case Analytic SQL ran 99% faster than a more traditional approach.<br />
The SQL problem being solved in the examples is getting the last 3 of each group.</strong><br />
This is my first attempt at using images for this blog. If you come to the web site, the images appear<br />
somewhat reasonable sized. If you are viewing this through a feed reader, the images may appear<br />
to be gigantic. I am thinking I will avoid images in the future.<br />
I don&#8217;t know if this example really proves anything except that under these circumstances,<br />
the analytics query is much faster than the traditional query.<br />
If you think these results are atypical, or have any comments on this example, please leave a comment.<br />
Also, ignore the /*xyzzy03*/ in the example; it is just a comment that I forgot to strip out.</p>
<p>
<a title="page1" href="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0001a.png"><img style="width:614px;height:739px;" height="800" alt="page1" src="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0001a.png?w=738&#038;h=800" width="738" /></a><br />
<a title="page2" href="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0002.png"><br />
<img style="width:593px;height:819px;" height="979" alt="page2" src="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0002.png?w=700&#038;h=979" width="700" /></a></p>
<p>
<a title="page3" href="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0003.png"><img style="width:495px;height:1249px;" height="1784" alt="page3" src="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0003.png?w=700&#038;h=1784" width="700" /></a></p>
<p>
<a title="page4" href="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0004.png"><img style="width:400px;height:778px;" height="778" alt=" " src="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0004.png?w=400&#038;h=778" width="400" /></a></p>
<p>
<a title="page5" href="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0005.png"><img style="width:540px;height:884px;" height="1450" src="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0005.png?w=749&#038;h=1450" width="749" /></a></p>
<p>
<a title="page6" href="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0006.png"><img style="width:554px;height:543px;" alt="page6" hspace="0" src="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0006.png" align="left" border="1" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=18&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/04/16/analytics-performance-comparison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>

		<media:content url="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0001a.png" medium="image">
			<media:title type="html">page1</media:title>
		</media:content>

		<media:content url="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0002.png" medium="image">
			<media:title type="html">page2</media:title>
		</media:content>

		<media:content url="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0003.png" medium="image">
			<media:title type="html">page3</media:title>
		</media:content>

		<media:content url="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0004.png" medium="image">
			<media:title type="html"> </media:title>
		</media:content>

		<media:content url="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0005.png" medium="image" />

		<media:content url="http://hicamel.files.wordpress.com/2007/04/toad-senerio-compare_0006.png" medium="image">
			<media:title type="html">page6</media:title>
		</media:content>
	</item>
		<item>
		<title>Using MODEL to generate a sequence of numbers</title>
		<link>http://hicamel.wordpress.com/2007/04/03/using-model-to-generate-a-sequence-of-numbers/</link>
		<comments>http://hicamel.wordpress.com/2007/04/03/using-model-to-generate-a-sequence-of-numbers/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 21:12:06 +0000</pubDate>
		<dc:creator>Michael Moore</dc:creator>
				<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[pl/sql code]]></category>

		<guid isPermaLink="false">http://hicamel.wordpress.com/2007/04/03/using-model-to-generate-a-sequence-of-numbers/</guid>
		<description><![CDATA[This article has moved to
Mike&#8217;s PL/SQL Notes
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=15&subd=hicamel&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This article has moved to</p>
<p><a href="http://plsqlnotes.blogspot.com/2007/10/this-code-will-generate-list-of.html#links">Mike&#8217;s PL/SQL Notes</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hicamel.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hicamel.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hicamel.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hicamel.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hicamel.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hicamel.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hicamel.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hicamel.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hicamel.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hicamel.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hicamel.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hicamel.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hicamel.wordpress.com&blog=594048&post=15&subd=hicamel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hicamel.wordpress.com/2007/04/03/using-model-to-generate-a-sequence-of-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec9de2b7d0465cb792e1b10a1785b5cc?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hicamel</media:title>
		</media:content>
	</item>
	</channel>
</rss>