<?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: A Few Oracle Tips</title>
	<atom:link href="http://addictedtonew.com/archives/84/a-few-oracle-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/</link>
	<description>John Nunemaker\'s thoughts and such</description>
	<lastBuildDate>Sun, 01 Nov 2009 17:19:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: minnesolta health care plan</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-90572</link>
		<dc:creator>minnesolta health care plan</dc:creator>
		<pubDate>Sun, 19 Aug 2007 09:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-90572</guid>
		<description>&lt;strong&gt;minnesolta health care plan...&lt;/strong&gt;

bourgeois passing Markham ...</description>
		<content:encoded><![CDATA[<p><strong>minnesolta health care plan&#8230;</strong></p>
<p>bourgeois passing Markham &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bingo</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-72162</link>
		<dc:creator>bingo</dc:creator>
		<pubDate>Thu, 26 Apr 2007 04:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-72162</guid>
		<description>Hi, liked the article. regards,  bingo3020.</description>
		<content:encoded><![CDATA[<p>Hi, liked the article. regards,  bingo3020.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pim</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-70931</link>
		<dc:creator>Pim</dc:creator>
		<pubDate>Wed, 18 Apr 2007 15:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-70931</guid>
		<description>Hi all,

I agree the oracle site isn&#039;t the easiest one but...
I just wanted to say you can always ask tom about oracle. 

http://asktom.oracle.com

Pim</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I agree the oracle site isn&#8217;t the easiest one but&#8230;<br />
I just wanted to say you can always ask tom about oracle. </p>
<p><a href="http://asktom.oracle.com" rel="nofollow">http://asktom.oracle.com</a></p>
<p>Pim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ã‚«ã‚¸ãƒŽ</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-68760</link>
		<dc:creator>ã‚«ã‚¸ãƒŽ</dc:creator>
		<pubDate>Sat, 07 Apr 2007 02:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-68760</guid>
		<description>Hi, liked the article. regards,  ã‚«ã‚¸ãƒŽ5215.</description>
		<content:encoded><![CDATA[<p>Hi, liked the article. regards,  ã‚«ã‚¸ãƒŽ5215.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ã‚«ã‚¸ãƒŽ</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-67259</link>
		<dc:creator>ã‚«ã‚¸ãƒŽ</dc:creator>
		<pubDate>Sun, 25 Mar 2007 22:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-67259</guid>
		<description>Hi, liked the article. regards,  ã‚«ã‚¸ãƒŽ5484.</description>
		<content:encoded><![CDATA[<p>Hi, liked the article. regards,  ã‚«ã‚¸ãƒŽ5484.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ogun</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-60693</link>
		<dc:creator>Ogun</dc:creator>
		<pubDate>Thu, 22 Feb 2007 16:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-60693</guid>
		<description>Thank you for those tips. I&#039;am also comming from a MySQL background and I&#039;m having a hart time getting used to Oracle ...</description>
		<content:encoded><![CDATA[<p>Thank you for those tips. I&#8217;am also comming from a MySQL background and I&#8217;m having a hart time getting used to Oracle &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sincy</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-60643</link>
		<dc:creator>Sincy</dc:creator>
		<pubDate>Thu, 22 Feb 2007 09:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-60643</guid>
		<description>thanks very helpful indeed</description>
		<content:encoded><![CDATA[<p>thanks very helpful indeed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DelGurth</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-6519</link>
		<dc:creator>DelGurth</dc:creator>
		<pubDate>Sun, 27 Aug 2006 09:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-6519</guid>
		<description>@John

I&#039;ve just created a table news on an oracle 8.1.7 install I&#039;ve access to. I&#039;ve inserted 10 test records:


SQL&gt; select * from news;

 ID DATE_CREA NAME
--- --------- --------------------
  1 19-MAY-06 test 1 - 100
  2 29-MAY-06 test 2 - 90
  3 08-JUN-06 test 3 - 80
  4 18-JUN-06 test 4 - 70
  5 28-JUN-06 test 5 - 60
  6 08-JUL-06 test 6 - 50
  7 18-JUL-06 test 7 - 40
  8 28-JUL-06 test 8 - 30
  9 07-AUG-06 test 9 - 20
 10 17-AUG-06 test 10 - 10


Now the result of your query:


 ID DATE_CREA NAME                 NUMERO
--- --------- -------------------- ------
  5 28-JUN-06 test 5 - 60               5
  4 18-JUN-06 test 4 - 70               4
  3 08-JUN-06 test 3 - 80               3
  2 29-MAY-06 test 2 - 90               2
  1 19-MAY-06 test 1 - 100              1



That does not seem to be correct, does it? I would expect id 10 to 6 to show up, not 5 to 1.

I also verified this with a clean oracle 10 XE install, and it gives me the same results.


There is however an alternave for the solution I gave. You could also use:
&lt;code&gt;
SELECT *
FROM (
      SELECT n.*
      , row_number() over (order by date_created desc)
as numero
      FROM news n
    )
WHERE
    numero </description>
		<content:encoded><![CDATA[<p>@John</p>
<p>I&#8217;ve just created a table news on an oracle 8.1.7 install I&#8217;ve access to. I&#8217;ve inserted 10 test records:</p>
<p>SQL&gt; select * from news;</p>
<p> ID DATE_CREA NAME<br />
&#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
  1 19-MAY-06 test 1 &#8211; 100<br />
  2 29-MAY-06 test 2 &#8211; 90<br />
  3 08-JUN-06 test 3 &#8211; 80<br />
  4 18-JUN-06 test 4 &#8211; 70<br />
  5 28-JUN-06 test 5 &#8211; 60<br />
  6 08-JUL-06 test 6 &#8211; 50<br />
  7 18-JUL-06 test 7 &#8211; 40<br />
  8 28-JUL-06 test 8 &#8211; 30<br />
  9 07-AUG-06 test 9 &#8211; 20<br />
 10 17-AUG-06 test 10 &#8211; 10</p>
<p>Now the result of your query:</p>
<p> ID DATE_CREA NAME                 NUMERO<br />
&#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;<br />
  5 28-JUN-06 test 5 &#8211; 60               5<br />
  4 18-JUN-06 test 4 &#8211; 70               4<br />
  3 08-JUN-06 test 3 &#8211; 80               3<br />
  2 29-MAY-06 test 2 &#8211; 90               2<br />
  1 19-MAY-06 test 1 &#8211; 100              1</p>
<p>That does not seem to be correct, does it? I would expect id 10 to 6 to show up, not 5 to 1.</p>
<p>I also verified this with a clean oracle 10 XE install, and it gives me the same results.</p>
<p>There is however an alternave for the solution I gave. You could also use:<br />
<code><br />
SELECT *<br />
FROM (<br />
      SELECT n.*<br />
      , row_number() over (order by date_created desc)<br />
as numero<br />
      FROM news n<br />
    )<br />
WHERE<br />
    numero</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-4458</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Fri, 14 Jul 2006 19:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-4458</guid>
		<description>@DelGurth - Interesting. If that is indeed the case then it wouldn&#039;t work but I haven&#039;t had any problems as of yet.</description>
		<content:encoded><![CDATA[<p>@DelGurth &#8211; Interesting. If that is indeed the case then it wouldn&#8217;t work but I haven&#8217;t had any problems as of yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DelGurth</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-4438</link>
		<dc:creator>DelGurth</dc:creator>
		<pubDate>Fri, 14 Jul 2006 12:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-4438</guid>
		<description>I know I&#039;m a bit late in responding, but I just found this article using google.

Your LIMIT example is incorrect. The ROWNUM field is added to the query BEFORE it&#039;s sorted. So if a not ordered select will give you the newest 5 articles it will work, but that is not a guarenteed situation.

You example should have been:

SELECT *
FROM (
      SELECT n.*
      FROM news n
      ORDER BY date_created DESC
    )
WHERE
    ROWNUM </description>
		<content:encoded><![CDATA[<p>I know I&#8217;m a bit late in responding, but I just found this article using google.</p>
<p>Your LIMIT example is incorrect. The ROWNUM field is added to the query BEFORE it&#8217;s sorted. So if a not ordered select will give you the newest 5 articles it will work, but that is not a guarenteed situation.</p>
<p>You example should have been:</p>
<p>SELECT *<br />
FROM (<br />
      SELECT n.*<br />
      FROM news n<br />
      ORDER BY date_created DESC<br />
    )<br />
WHERE<br />
    ROWNUM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tully</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-290</link>
		<dc:creator>Brian Tully</dc:creator>
		<pubDate>Thu, 15 Sep 2005 04:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-290</guid>
		<description>thanks John! very helpful indeed :)</description>
		<content:encoded><![CDATA[<p>thanks John! very helpful indeed :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-285</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Wed, 14 Sep 2005 19:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-285</guid>
		<description>@Brian - I don&#039;t know of any good books, but I have a few resources I have found helpful &lt;a href=&quot;http://del.icio.us/jnunemaker/oracle&quot; rel=&quot;nofollow&quot;&gt;bookmarked at Delicious&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Brian &#8211; I don&#8217;t know of any good books, but I have a few resources I have found helpful <a href="http://del.icio.us/jnunemaker/oracle" rel="nofollow">bookmarked at Delicious</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tully</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-280</link>
		<dc:creator>Brian Tully</dc:creator>
		<pubDate>Wed, 14 Sep 2005 15:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-280</guid>
		<description>i guess it would help if i specified a way of contacting me ;)

brian.tully at gmail.com

thanks again.</description>
		<content:encoded><![CDATA[<p>i guess it would help if i specified a way of contacting me ;)</p>
<p>brian.tully at gmail.com</p>
<p>thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tully</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-279</link>
		<dc:creator>Brian Tully</dc:creator>
		<pubDate>Wed, 14 Sep 2005 15:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-279</guid>
		<description>very interesting. I&#039;m actually in a similar boat where i&#039;ve been developing with PHP/MySQL for a few years and now it looks as though I&#039;m forced to do some very quick learning of Oracle - specifically their iLearning product which uses the 9i database, 10g application server and 10g development suite.

Do you have any good references (books/sites) for getting up to speed on Oracle, especially coming from a MySQL background? It would be GREATLY appreciated. 

Another option would be if anyone knows of an experienced Oracle developer that has some free time and familiarity with iLearning. We definitely could use some help ASAP.

Thanks again...</description>
		<content:encoded><![CDATA[<p>very interesting. I&#8217;m actually in a similar boat where i&#8217;ve been developing with PHP/MySQL for a few years and now it looks as though I&#8217;m forced to do some very quick learning of Oracle &#8211; specifically their iLearning product which uses the 9i database, 10g application server and 10g development suite.</p>
<p>Do you have any good references (books/sites) for getting up to speed on Oracle, especially coming from a MySQL background? It would be GREATLY appreciated. </p>
<p>Another option would be if anyone knows of an experienced Oracle developer that has some free time and familiarity with iLearning. We definitely could use some help ASAP.</p>
<p>Thanks again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/84/a-few-oracle-tips/comment-page-1/#comment-231</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Thu, 08 Sep 2005 19:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=84#comment-231</guid>
		<description>@Jonathan - That is interesting. Seems pretty simple. Now that I am beginning to grasp Oracle, I too feel limited by MySQL. I think MySQL is easier to learn, but obviously it lacks the power of Oracle and such.</description>
		<content:encoded><![CDATA[<p>@Jonathan &#8211; That is interesting. Seems pretty simple. Now that I am beginning to grasp Oracle, I too feel limited by MySQL. I think MySQL is easier to learn, but obviously it lacks the power of Oracle and such.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

