<?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: TOP - a LIMIT work around for SQL Server</title>
	<atom:link href="http://itcave.net/sql/extracting-ranges-using-top/feed" rel="self" type="application/rss+xml" />
	<link>http://itcave.net/sql/extracting-ranges-using-top</link>
	<description>Just another Tech Blog</description>
	<pubDate>Thu, 11 Mar 2010 02:47:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Vijaycanaan</title>
		<link>http://itcave.net/sql/extracting-ranges-using-top#comment-58</link>
		<dc:creator>Vijaycanaan</dc:creator>
		<pubDate>Tue, 30 Sep 2008 12:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://itcave.net/sql/extracting-ranges-using-top#comment-58</guid>
		<description>Very kind hearted by helping people like me. Blog is simple and effective.</description>
		<content:encoded><![CDATA[<p>Very kind hearted by helping people like me. Blog is simple and effective.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://itcave.net/sql/extracting-ranges-using-top#comment-23</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sun, 06 Jul 2008 00:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://itcave.net/sql/extracting-ranges-using-top#comment-23</guid>
		<description>"Just another Tech Blog" 

Ah! but blogs can be like seeds and your help is...helpfull! 

Thanks for this one</description>
		<content:encoded><![CDATA[<p>&#8220;Just another Tech Blog&#8221; </p>
<p>Ah! but blogs can be like seeds and your help is&#8230;helpfull! </p>
<p>Thanks for this one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milky</title>
		<link>http://itcave.net/sql/extracting-ranges-using-top#comment-6</link>
		<dc:creator>Milky</dc:creator>
		<pubDate>Fri, 07 Mar 2008 15:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://itcave.net/sql/extracting-ranges-using-top#comment-6</guid>
		<description>where would you add an extra Where clause that defines words with the letter 'e' in them to be showed?</description>
		<content:encoded><![CDATA[<p>where would you add an extra Where clause that defines words with the letter &#8216;e&#8217; in them to be showed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynsay</title>
		<link>http://itcave.net/sql/extracting-ranges-using-top#comment-5</link>
		<dc:creator>Lynsay</dc:creator>
		<pubDate>Fri, 07 Mar 2008 09:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://itcave.net/sql/extracting-ranges-using-top#comment-5</guid>
		<description>Just figured this out on Wednesday- I was trying to use LIMIT, not realising that it wasn't compatible with MSSQL.  Would have been useful if PHP had displayed a proper error!</description>
		<content:encoded><![CDATA[<p>Just figured this out on Wednesday- I was trying to use LIMIT, not realising that it wasn&#8217;t compatible with MSSQL.  Would have been useful if PHP had displayed a proper error!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://itcave.net/sql/extracting-ranges-using-top#comment-4</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Tue, 04 Mar 2008 14:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://itcave.net/sql/extracting-ranges-using-top#comment-4</guid>
		<description>You would set the next/previous page links up so that they pass the page number via GET.

You then use your server-side script to multiply the page number you want to display by the range. The range is then subtracted from the result of the multiplication, leaving you with the value needed for the inner TOP.

For example, if you want to view page 3 and you have set it to display 10 items at the time then you would calculate 3 * 10 - 10 = 20.

Keeping in mind that the outer TOP defines the range you now have both all values needed to run the query.</description>
		<content:encoded><![CDATA[<p>You would set the next/previous page links up so that they pass the page number via GET.</p>
<p>You then use your server-side script to multiply the page number you want to display by the range. The range is then subtracted from the result of the multiplication, leaving you with the value needed for the inner TOP.</p>
<p>For example, if you want to view page 3 and you have set it to display 10 items at the time then you would calculate 3 * 10 - 10 = 20.</p>
<p>Keeping in mind that the outer TOP defines the range you now have both all values needed to run the query.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
