<?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/"
	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>Comments on: Why Doesn&#8217;t this SQL Work?</title>
	<atom:link href="http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Thu, 23 May 2013 04:02:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-481</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 11:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-481</guid>
		<description><![CDATA[Timur,

Thanks for the suggestion.  I believe that those settings worked with the original Wordpress theme that I used, but that Wordpress theme did not handle wide code sections very well.  When I switched to the current &quot;Freshy&quot; theme the settings on that page no longer controlled the format of the dates for the blog articles nor for the comments.  Looking through the raw CSS stylesheet, I do not see how the date format was changed by the &quot;Freshy&quot; theme.

This is just a minor issue, so I am not too concerned about the date format.]]></description>
		<content:encoded><![CDATA[<p>Timur,</p>
<p>Thanks for the suggestion.  I believe that those settings worked with the original WordPress theme that I used, but that WordPress theme did not handle wide code sections very well.  When I switched to the current &#8220;Freshy&#8221; theme the settings on that page no longer controlled the format of the dates for the blog articles nor for the comments.  Looking through the raw CSS stylesheet, I do not see how the date format was changed by the &#8220;Freshy&#8221; theme.</p>
<p>This is just a minor issue, so I am not too concerned about the date format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-479</link>
		<dc:creator><![CDATA[Timur Akhmadeev]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 09:23:54 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-479</guid>
		<description><![CDATA[&gt;I have no control over the formatting of the dates. 
Charles, you can change date and time formats on the Settings-&gt;General page of the Wordpress admin tool.]]></description>
		<content:encoded><![CDATA[<p>&gt;I have no control over the formatting of the dates.<br />
Charles, you can change date and time formats on the Settings-&gt;General page of the WordPress admin tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-476</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 00:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-476</guid>
		<description><![CDATA[Joel, thanks for stopping by.

I guess that I should have looked at the book reviews before quoting from that book (I have not read that book).  On a positive note, the book did receive four 5 star reviews, so someone liked the book (maybe the owner of the DeepThinking site).  I think that I recognize the names of a couple of the people who wrote some of those reviews.

The display of the dates is one of the few problems that I have with this Wordpress theme - that is why I write the date on the first line of each article.  I have no control over the formatting of the dates.  The dates of the comments are actually at the right side of the comment:
  8
03
2010

I guess that is supposed to mean March 8, 2010.]]></description>
		<content:encoded><![CDATA[<p>Joel, thanks for stopping by.</p>
<p>I guess that I should have looked at the book reviews before quoting from that book (I have not read that book).  On a positive note, the book did receive four 5 star reviews, so someone liked the book (maybe the owner of the DeepThinking site).  I think that I recognize the names of a couple of the people who wrote some of those reviews.</p>
<p>The display of the dates is one of the few problems that I have with this WordPress theme &#8211; that is why I write the date on the first line of each article.  I have no control over the formatting of the dates.  The dates of the comments are actually at the right side of the comment:<br />
  8<br />
03<br />
2010</p>
<p>I guess that is supposed to mean March 8, 2010.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joel garry</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-475</link>
		<dc:creator><![CDATA[joel garry]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 23:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-475</guid>
		<description><![CDATA[I followed the google books reference to Amazon, and boy were those reviews entertaining!  Thanks Charles, et al.

By the by, if you could put date as well as time on the comments, that might be userful.]]></description>
		<content:encoded><![CDATA[<p>I followed the google books reference to Amazon, and boy were those reviews entertaining!  Thanks Charles, et al.</p>
<p>By the by, if you could put date as well as time on the comments, that might be userful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Fletcher</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-448</link>
		<dc:creator><![CDATA[Simon Fletcher]]></dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-448</guid>
		<description><![CDATA[Gone are the days when I could predict what the optimizer would do (Oracle 7.3 was the last release I think).

The original text is basically explaining that NOT EXISTS is preferred to NOT IN.  Unfortunately the author forgets to put in the join to correlate the sub-query.  He then goes on to explain that an outer join is often quicker than a NOT EXISTS.  Although you&#039;ve demonstrated current releases of the optimiser handle them the same.

Interesting that the author didn&#039;t suggest a MINUS which in some circumstances can be even quicker.
e.g.
SELECT BOOK_KEY FROM T5
MINUS
SELECT BOOK_KEY FROM T6]]></description>
		<content:encoded><![CDATA[<p>Gone are the days when I could predict what the optimizer would do (Oracle 7.3 was the last release I think).</p>
<p>The original text is basically explaining that NOT EXISTS is preferred to NOT IN.  Unfortunately the author forgets to put in the join to correlate the sub-query.  He then goes on to explain that an outer join is often quicker than a NOT EXISTS.  Although you&#8217;ve demonstrated current releases of the optimiser handle them the same.</p>
<p>Interesting that the author didn&#8217;t suggest a MINUS which in some circumstances can be even quicker.<br />
e.g.<br />
SELECT BOOK_KEY FROM T5<br />
MINUS<br />
SELECT BOOK_KEY FROM T6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niall Litchfield</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-447</link>
		<dc:creator><![CDATA[Niall Litchfield]]></dc:creator>
		<pubDate>Wed, 03 Mar 2010 10:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-447</guid>
		<description><![CDATA[Hi Maxim

No need to get as far as that, you&#039;ll find that you can&#039;t insert those two rows into that table in that fashion. It&#039;s rather difficult to avoid the conclusion that the output was most likely made up.]]></description>
		<content:encoded><![CDATA[<p>Hi Maxim</p>
<p>No need to get as far as that, you&#8217;ll find that you can&#8217;t insert those two rows into that table in that fashion. It&#8217;s rather difficult to avoid the conclusion that the output was most likely made up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxim</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-444</link>
		<dc:creator><![CDATA[Maxim]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 17:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-444</guid>
		<description><![CDATA[Well, for given external table definition, at least 2 rows from the provided output should have been rejected - yet again bug report for Metalink ?

Best regards

Maxim]]></description>
		<content:encoded><![CDATA[<p>Well, for given external table definition, at least 2 rows from the provided output should have been rejected &#8211; yet again bug report for Metalink ?</p>
<p>Best regards</p>
<p>Maxim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-443</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 14:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-443</guid>
		<description><![CDATA[Niall,

That is a tough problem.

When you are counting on the character of the code to tell you if you have ERRORed, maybe you should be counting on using something else?  At least that is what Word&#039;s character counter told me.]]></description>
		<content:encoded><![CDATA[<p>Niall,</p>
<p>That is a tough problem.</p>
<p>When you are counting on the character of the code to tell you if you have ERRORed, maybe you should be counting on using something else?  At least that is what Word&#8217;s character counter told me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-442</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-442</guid>
		<description><![CDATA[Niall,

Thanks for stopping by.  That, unfortunately, is the problem.  When something is repeated often enough by enough people, there is a good chance that others will start believing that what is stated is true.  If it had not been for Simon&#039;s post in this thread, someone might be tempted to file a bug report on Metalink to report that Oracle is returning the wrong query results.  :-)

I do not know who originally created that piece of SQL code.  A Google search finds a blog article dated October 10, 2008, another blog article dated July 27, 2009, a news article dated July 5, 2009, and a book with a copywrite date of 2004 - but the SQL statement might have been kicking around long before 2004.]]></description>
		<content:encoded><![CDATA[<p>Niall,</p>
<p>Thanks for stopping by.  That, unfortunately, is the problem.  When something is repeated often enough by enough people, there is a good chance that others will start believing that what is stated is true.  If it had not been for Simon&#8217;s post in this thread, someone might be tempted to file a bug report on Metalink to report that Oracle is returning the wrong query results.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I do not know who originally created that piece of SQL code.  A Google search finds a blog article dated October 10, 2008, another blog article dated July 27, 2009, a news article dated July 5, 2009, and a book with a copywrite date of 2004 &#8211; but the SQL statement might have been kicking around long before 2004.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/03/02/why-doesnt-this-sql-work/#comment-441</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1558#comment-441</guid>
		<description><![CDATA[Simon,

Thanks for stopping by.  Your fix is correct, however... now the original documents that recommend the modification to the SQL statement do not make sense, at least with any supported release of Oracle Database.  I was hoping that someone would supply the corrected SQL statement, thanks.

A demonstration using &lt;a href=&quot;http://hoopercharles.wordpress.com/2010/02/11/automated-dbms_xplan-trace-and-send-to-excel/&quot; rel=&quot;nofollow&quot;&gt;my automated tool&lt;/a&gt; for generating DBMS_XPLAN output 

The SQL statement from the web pages that actually worked as expected:
&lt;pre&gt;
SQL_ID  9wygcmywqnakk, child number 0
-------------------------------------
SELECT B.BOOK_KEY  FROM T5 B , T6 S WHERE     B.BOOK_KEY=S.BOOK_KEY(+)    AND S.BOOK_KEY IS NULL
 
Plan hash value: 4037983709
 
----------------------------------------------------------------------------------------------------------------
&#124; Id  &#124; Operation          &#124; Name &#124; Starts &#124; E-Rows &#124; A-Rows &#124;   A-Time   &#124; Buffers &#124;  OMem &#124;  1Mem &#124; Used-Mem &#124;
----------------------------------------------------------------------------------------------------------------
&#124;*  1 &#124;  HASH JOIN ANTI    &#124;      &#124;      1 &#124;      1 &#124;     10 &#124;00:00:00.01 &#124;       6 &#124;  1517K&#124;  1517K&#124; 1043K (0)&#124;
&#124;   2 &#124;   TABLE ACCESS FULL&#124; T5   &#124;      1 &#124;     20 &#124;     20 &#124;00:00:00.01 &#124;       3 &#124;       &#124;       &#124;          &#124;
&#124;   3 &#124;   TABLE ACCESS FULL&#124; T6   &#124;      1 &#124;     20 &#124;     20 &#124;00:00:00.01 &#124;       3 &#124;       &#124;       &#124;          &#124;
----------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
   1 - access(&quot;B&quot;.&quot;BOOK_KEY&quot;=&quot;S&quot;.&quot;BOOK_KEY&quot;)
 
Note
-----
   - dynamic sampling used for this statement
&lt;/pre&gt;
 
Your correctly fixed version of the SQL statement:
&lt;pre&gt;
SQL_ID  0chf1vyy804cz, child number 0
-------------------------------------
SELECT BOOK_KEY  FROM T5 WHERE     NOT EXISTS (SELECT BOOK_KEY FROM T6 WHERE T5.BOOK_KEY = T6.BOOK_KEY)
 
Plan hash value: 4037983709
 
----------------------------------------------------------------------------------------------------------------
&#124; Id  &#124; Operation          &#124; Name &#124; Starts &#124; E-Rows &#124; A-Rows &#124;   A-Time   &#124; Buffers &#124;  OMem &#124;  1Mem &#124; Used-Mem &#124;
----------------------------------------------------------------------------------------------------------------
&#124;*  1 &#124;  HASH JOIN ANTI    &#124;      &#124;      1 &#124;      1 &#124;     10 &#124;00:00:00.01 &#124;       6 &#124;  1517K&#124;  1517K&#124; 1111K (0)&#124;
&#124;   2 &#124;   TABLE ACCESS FULL&#124; T5   &#124;      1 &#124;     20 &#124;     20 &#124;00:00:00.01 &#124;       3 &#124;       &#124;       &#124;          &#124;
&#124;   3 &#124;   TABLE ACCESS FULL&#124; T6   &#124;      1 &#124;     20 &#124;     20 &#124;00:00:00.01 &#124;       3 &#124;       &#124;       &#124;          &#124;
----------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
   1 - access(&quot;T5&quot;.&quot;BOOK_KEY&quot;=&quot;T6&quot;.&quot;BOOK_KEY&quot;)
 
Note
-----
   - dynamic sampling used for this statement
&lt;/pre&gt;
 
Still not obvious why the plans look very, very similar on Oracle 10.2.0.x?  Let&#039;s look at a portion of the 10053 trace file:

The SQL statement from the web pages that actually worked as expected:
&lt;pre&gt;
******************************************
Current SQL statement for this session:
SELECT B.BOOK_KEY  FROM T5 B , T6 S WHERE  
  B.BOOK_KEY=S.BOOK_KEY(+) 
  AND S.BOOK_KEY IS NULL 
*******************************************
...
*********************************
(newjo-save)    [1 0 ]
Final - All Rows Plan:  Best join order: 1
  Cost: 4.5107  Degree: 1  Card: 1.0000  Bytes: 26
  Resc: 4.5107  Resc_io: 4.0000  Resc_cpu: 3241267
  Resp: 4.5107  Resp_io: 4.0000  Resc_cpu: 3241267
kkoipt: Query block SEL$6E71C6F6 (#0)
******* UNPARSED QUERY IS *******
SELECT &quot;B&quot;.&quot;BOOK_KEY&quot; &quot;BOOK_KEY&quot; FROM &quot;TESTUSER&quot;.&quot;T5&quot; &quot;B&quot;,&quot;TESTUSER&quot;.&quot;T6&quot; &quot;S&quot; WHERE &quot;B&quot;.&quot;BOOK_KEY&quot;=&quot;S&quot;.&quot;BOOK_KEY&quot;
kkoqbc-end
          : call(in-use=41424, alloc=49080), compile(in-use=43232, alloc=47000)
apadrv-end: call(in-use=41424, alloc=49080), compile(in-use=44176, alloc=47000)
&lt;/pre&gt;

Your correctly fixed version of the SQL statement:
&lt;pre&gt;
******************************************
Current SQL statement for this session:
SELECT BOOK_KEY  FROM T5 WHERE  
  NOT EXISTS (SELECT BOOK_KEY FROM T6 WHERE T5.BOOK_KEY = T6.BOOK_KEY) 
*******************************************
...
*********************************
(newjo-save)    [0 1 ]
Final - All Rows Plan:  Best join order: 1
  Cost: 4.5107  Degree: 1  Card: 1.0000  Bytes: 26
  Resc: 4.5107  Resc_io: 4.0000  Resc_cpu: 3241267
  Resp: 4.5107  Resp_io: 4.0000  Resc_cpu: 3241267
kkoipt: Query block SEL$5DA710D3 (#1)
******* UNPARSED QUERY IS *******
SELECT &quot;T5&quot;.&quot;BOOK_KEY&quot; &quot;BOOK_KEY&quot; FROM &quot;TESTUSER&quot;.&quot;T6&quot; &quot;T6&quot;,&quot;TESTUSER&quot;.&quot;T5&quot; &quot;T5&quot; WHERE &quot;T5&quot;.&quot;BOOK_KEY&quot;=&quot;T6&quot;.&quot;BOOK_KEY&quot;
kkoqbc-end
          : call(in-use=42280, alloc=49080), compile(in-use=66776, alloc=105192)
apadrv-end: call(in-use=42280, alloc=49080), compile(in-use=67720, alloc=105192)
&lt;/pre&gt;

Those SQL statements directly below the &quot;******* UNPARSED QUERY IS *******&quot; lines from the 10053 trace files sure do look to be similar.
 
This SQL statement transformation might be a news-worthy development, especially for those who are still working from Oracle 8i SQL references.]]></description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>Thanks for stopping by.  Your fix is correct, however&#8230; now the original documents that recommend the modification to the SQL statement do not make sense, at least with any supported release of Oracle Database.  I was hoping that someone would supply the corrected SQL statement, thanks.</p>
<p>A demonstration using <a href="http://hoopercharles.wordpress.com/2010/02/11/automated-dbms_xplan-trace-and-send-to-excel/" rel="nofollow">my automated tool</a> for generating DBMS_XPLAN output </p>
<p>The SQL statement from the web pages that actually worked as expected:</p>
<pre>
SQL_ID  9wygcmywqnakk, child number 0
-------------------------------------
SELECT B.BOOK_KEY  FROM T5 B , T6 S WHERE     B.BOOK_KEY=S.BOOK_KEY(+)    AND S.BOOK_KEY IS NULL
 
Plan hash value: 4037983709
 
----------------------------------------------------------------------------------------------------------------
| Id  | Operation          | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
----------------------------------------------------------------------------------------------------------------
|*  1 |  HASH JOIN ANTI    |      |      1 |      1 |     10 |00:00:00.01 |       6 |  1517K|  1517K| 1043K (0)|
|   2 |   TABLE ACCESS FULL| T5   |      1 |     20 |     20 |00:00:00.01 |       3 |       |       |          |
|   3 |   TABLE ACCESS FULL| T6   |      1 |     20 |     20 |00:00:00.01 |       3 |       |       |          |
----------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
   1 - access("B"."BOOK_KEY"="S"."BOOK_KEY")
 
Note
-----
   - dynamic sampling used for this statement
</pre>
<p>Your correctly fixed version of the SQL statement:</p>
<pre>
SQL_ID  0chf1vyy804cz, child number 0
-------------------------------------
SELECT BOOK_KEY  FROM T5 WHERE     NOT EXISTS (SELECT BOOK_KEY FROM T6 WHERE T5.BOOK_KEY = T6.BOOK_KEY)
 
Plan hash value: 4037983709
 
----------------------------------------------------------------------------------------------------------------
| Id  | Operation          | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
----------------------------------------------------------------------------------------------------------------
|*  1 |  HASH JOIN ANTI    |      |      1 |      1 |     10 |00:00:00.01 |       6 |  1517K|  1517K| 1111K (0)|
|   2 |   TABLE ACCESS FULL| T5   |      1 |     20 |     20 |00:00:00.01 |       3 |       |       |          |
|   3 |   TABLE ACCESS FULL| T6   |      1 |     20 |     20 |00:00:00.01 |       3 |       |       |          |
----------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
   1 - access("T5"."BOOK_KEY"="T6"."BOOK_KEY")
 
Note
-----
   - dynamic sampling used for this statement
</pre>
<p>Still not obvious why the plans look very, very similar on Oracle 10.2.0.x?  Let&#8217;s look at a portion of the 10053 trace file:</p>
<p>The SQL statement from the web pages that actually worked as expected:</p>
<pre>
******************************************
Current SQL statement for this session:
SELECT B.BOOK_KEY  FROM T5 B , T6 S WHERE  
  B.BOOK_KEY=S.BOOK_KEY(+) 
  AND S.BOOK_KEY IS NULL 
*******************************************
...
*********************************
(newjo-save)    [1 0 ]
Final - All Rows Plan:  Best join order: 1
  Cost: 4.5107  Degree: 1  Card: 1.0000  Bytes: 26
  Resc: 4.5107  Resc_io: 4.0000  Resc_cpu: 3241267
  Resp: 4.5107  Resp_io: 4.0000  Resc_cpu: 3241267
kkoipt: Query block SEL$6E71C6F6 (#0)
******* UNPARSED QUERY IS *******
SELECT "B"."BOOK_KEY" "BOOK_KEY" FROM "TESTUSER"."T5" "B","TESTUSER"."T6" "S" WHERE "B"."BOOK_KEY"="S"."BOOK_KEY"
kkoqbc-end
          : call(in-use=41424, alloc=49080), compile(in-use=43232, alloc=47000)
apadrv-end: call(in-use=41424, alloc=49080), compile(in-use=44176, alloc=47000)
</pre>
<p>Your correctly fixed version of the SQL statement:</p>
<pre>
******************************************
Current SQL statement for this session:
SELECT BOOK_KEY  FROM T5 WHERE  
  NOT EXISTS (SELECT BOOK_KEY FROM T6 WHERE T5.BOOK_KEY = T6.BOOK_KEY) 
*******************************************
...
*********************************
(newjo-save)    [0 1 ]
Final - All Rows Plan:  Best join order: 1
  Cost: 4.5107  Degree: 1  Card: 1.0000  Bytes: 26
  Resc: 4.5107  Resc_io: 4.0000  Resc_cpu: 3241267
  Resp: 4.5107  Resp_io: 4.0000  Resc_cpu: 3241267
kkoipt: Query block SEL$5DA710D3 (#1)
******* UNPARSED QUERY IS *******
SELECT "T5"."BOOK_KEY" "BOOK_KEY" FROM "TESTUSER"."T6" "T6","TESTUSER"."T5" "T5" WHERE "T5"."BOOK_KEY"="T6"."BOOK_KEY"
kkoqbc-end
          : call(in-use=42280, alloc=49080), compile(in-use=66776, alloc=105192)
apadrv-end: call(in-use=42280, alloc=49080), compile(in-use=67720, alloc=105192)
</pre>
<p>Those SQL statements directly below the &#8220;******* UNPARSED QUERY IS *******&#8221; lines from the 10053 trace files sure do look to be similar.</p>
<p>This SQL statement transformation might be a news-worthy development, especially for those who are still working from Oracle 8i SQL references.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
