<?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: Paging Oracle Results</title>
	<atom:link href="http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/</link>
	<description>A weblog about stuff and junk by Jake Sutton</description>
	<pubDate>Thu, 20 Nov 2008 15:05:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Rodolfo Natanael</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-149191</link>
		<dc:creator>Rodolfo Natanael</dc:creator>
		<pubDate>Tue, 23 Sep 2008 11:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-149191</guid>
		<description>your solution was great man!!!</description>
		<content:encoded><![CDATA[<p>your solution was great man!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frosty</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-65040</link>
		<dc:creator>Frosty</dc:creator>
		<pubDate>Mon, 08 Oct 2007 07:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-65040</guid>
		<description>Awesome post! I'm using the second solution in a few pages. A great work around.</description>
		<content:encoded><![CDATA[<p>Awesome post! I&#8217;m using the second solution in a few pages. A great work around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scandar</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-43028</link>
		<dc:creator>Scandar</dc:creator>
		<pubDate>Thu, 31 May 2007 08:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-43028</guid>
		<description>"Note: I believe MySQL has shorthand: LIMIT 50,100"

PostgreSQL has this shorthand also.</description>
		<content:encoded><![CDATA[<p>&#8220;Note: I believe MySQL has shorthand: LIMIT 50,100&#8243;</p>
<p>PostgreSQL has this shorthand also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-41614</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Thu, 24 May 2007 04:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-41614</guid>
		<description>Cause its wrong</description>
		<content:encoded><![CDATA[<p>Cause its wrong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-5043</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Thu, 06 Jul 2006 08:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-5043</guid>
		<description>What about using the analytical function 'ROW_NUMBER()'.
So you will only need 2 selects instead of 3:

SELECT RNO FROM (
   SELECT t1.pk AS RD_ID, ROW_NUMBER() OVER (ORDER BY t1.pk DESC) AS RNO 
   FROM t1
   GROUP BY t1.pk
   ORDER BY t1.pk DESC 
) WHERE RNO BETWEEN 1 AND 100

Note that the ORDER BY statements should be the same.</description>
		<content:encoded><![CDATA[<p>What about using the analytical function &#8216;ROW_NUMBER()&#8217;.<br />
So you will only need 2 selects instead of 3:</p>
<p>SELECT RNO FROM (<br />
   SELECT t1.pk AS RD_ID, ROW_NUMBER() OVER (ORDER BY t1.pk DESC) AS RNO<br />
   FROM t1<br />
   GROUP BY t1.pk<br />
   ORDER BY t1.pk DESC<br />
) WHERE RNO BETWEEN 1 AND 100</p>
<p>Note that the ORDER BY statements should be the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-2186</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Fri, 09 Dec 2005 06:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-2186</guid>
		<description>Well, *I* don't use 'em. ;)</description>
		<content:encoded><![CDATA[<p>Well, *I* don&#8217;t use &#8216;em. <img src='http://www.blahstuff.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.blahstuff.com/oldstuff/2005/12/08/363/paging-oracle-results/#comment-2185</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Fri, 09 Dec 2005 03:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.blahstuff.com/?p=363#comment-2185</guid>
		<description>We use PostgreSQL and MySQL, just not anywhere obvious.  ;)</description>
		<content:encoded><![CDATA[<p>We use PostgreSQL and MySQL, just not anywhere obvious.  <img src='http://www.blahstuff.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
