<?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: SQL SERVER &#8211; 2005 &#8211; Find Nth Highest Record from Database Table &#8211; Using Ranking Function ROW_NUMBER</title>
	<atom:link href="http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #020 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-438052</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #020 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 16 Mar 2013 01:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-438052</guid>
		<description><![CDATA[[...] Find Nth Highest Record from Database Table – Using Ranking Function ROW_NUMBER This is one of the most interesting blog posts as I have received a very innovative solution from Nicholas where we find Nth Highest records from database. I encourage you to try out this script and compare with your existing script. If your script is optimized for performance do send it to me and I will update the blog post. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Find Nth Highest Record from Database Table – Using Ranking Function ROW_NUMBER This is one of the most interesting blog posts as I have received a very innovative solution from Nicholas where we find Nth Highest records from database. I encourage you to try out this script and compare with your existing script. If your script is optimized for performance do send it to me and I will update the blog post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goldy Saini</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-93955</link>
		<dc:creator><![CDATA[Goldy Saini]]></dc:creator>
		<pubDate>Mon, 18 Oct 2010 05:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-93955</guid>
		<description><![CDATA[Thanks Sir .]]></description>
		<content:encoded><![CDATA[<p>Thanks Sir .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alona</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-88331</link>
		<dc:creator><![CDATA[alona]]></dc:creator>
		<pubDate>Sun, 19 Sep 2010 15:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-88331</guid>
		<description><![CDATA[@ Brian Tkatch
thank you so much for the info
you&#039;ve help me a lot...]]></description>
		<content:encoded><![CDATA[<p>@ Brian Tkatch<br />
thank you so much for the info<br />
you&#8217;ve help me a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-63264</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 10:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-63264</guid>
		<description><![CDATA[Refer this to know more such methods
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer this to know more such methods<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-63262</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 10:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-63262</guid>
		<description><![CDATA[There is no concept of TOP or BOTTOM record in relationla database until you define it]]></description>
		<content:encoded><![CDATA[<p>There is no concept of TOP or BOTTOM record in relationla database until you define it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-63260</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 10:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-63260</guid>
		<description><![CDATA[select max(col) from your_table]]></description>
		<content:encoded><![CDATA[<p>select max(col) from your_table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-58023</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-58023</guid>
		<description><![CDATA[[last reply was a mistake]

@Dinesh

Using ROW_NUMBER() as in the article does not use the normal ORDER BY, that ORDER BY is part of the ROW_NUMBER syntax.

There is a way to do it without even that, but it is not very efficient. Bascially, use MAX() and WHERE &lt;.

For example, to find the third highest id:

SELECT MAX(id) FROM mytab WHERE id &lt; (SELECT MAX(id) FROM mytab WHERE id &lt; (SELECT MAX(id) FROM mytab))

This can be done with a join as well.]]></description>
		<content:encoded><![CDATA[<p>[last reply was a mistake]</p>
<p>@Dinesh</p>
<p>Using ROW_NUMBER() as in the article does not use the normal ORDER BY, that ORDER BY is part of the ROW_NUMBER syntax.</p>
<p>There is a way to do it without even that, but it is not very efficient. Bascially, use MAX() and WHERE &lt;.</p>
<p>For example, to find the third highest id:</p>
<p>SELECT MAX(id) FROM mytab WHERE id &lt; (SELECT MAX(id) FROM mytab WHERE id &lt; (SELECT MAX(id) FROM mytab))</p>
<p>This can be done with a join as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-58022</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-58022</guid>
		<description><![CDATA[@Dinesh

Yes. one way is ROW_NUMBER()

http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/]]></description>
		<content:encoded><![CDATA[<p>@Dinesh</p>
<p>Yes. one way is ROW_NUMBER()</p>
<p><a href="http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/" rel="nofollow">http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-57953</link>
		<dc:creator><![CDATA[Dinesh]]></dc:creator>
		<pubDate>Fri, 27 Nov 2009 07:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-57953</guid>
		<description><![CDATA[Hi All,

Is it possible that........

 Find Nth Highest Record from Database Table without using &quot;TOP&quot; and &quot;ORDER BY&quot;???]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>Is it possible that&#8230;&#8230;..</p>
<p> Find Nth Highest Record from Database Table without using &#8220;TOP&#8221; and &#8220;ORDER BY&#8221;???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hellock</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-57090</link>
		<dc:creator><![CDATA[Hellock]]></dc:creator>
		<pubDate>Wed, 28 Oct 2009 01:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-57090</guid>
		<description><![CDATA[Am I too late? 

Try this..

SELECT TOP 1 ID,Name
FROM
(SELECT TOP 6
 ID, Name
FROM Table
ORDER BY ID ASC) as top6
ORDER BY ID Desc]]></description>
		<content:encoded><![CDATA[<p>Am I too late? </p>
<p>Try this..</p>
<p>SELECT TOP 1 ID,Name<br />
FROM<br />
(SELECT TOP 6<br />
 ID, Name<br />
FROM Table<br />
ORDER BY ID ASC) as top6<br />
ORDER BY ID Desc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umesh Kumar</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-49315</link>
		<dc:creator><![CDATA[Umesh Kumar]]></dc:creator>
		<pubDate>Tue, 17 Mar 2009 15:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-49315</guid>
		<description><![CDATA[&gt; Ajith
&gt;
&gt; But if the records are duplicated i dont think it will return &gt; the correct result ??

Use DENSE_RANK() for this situation instead of ROW_NUMBER()]]></description>
		<content:encoded><![CDATA[<p>&gt; Ajith<br />
&gt;<br />
&gt; But if the records are duplicated i dont think it will return &gt; the correct result ??</p>
<p>Use DENSE_RANK() for this situation instead of ROW_NUMBER()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ced</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-46452</link>
		<dc:creator><![CDATA[ced]]></dc:creator>
		<pubDate>Sun, 08 Feb 2009 14:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-46452</guid>
		<description><![CDATA[How To Find a Record 3rd From bottom In Database?

Can anyone help me?]]></description>
		<content:encoded><![CDATA[<p>How To Find a Record 3rd From bottom In Database?</p>
<p>Can anyone help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chat</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-45312</link>
		<dc:creator><![CDATA[chat]]></dc:creator>
		<pubDate>Sat, 03 Jan 2009 12:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-45312</guid>
		<description><![CDATA[I want to Pagination using SQL. I having db Ms Sql 2000.
Please help on this front.

Thanks in Adv.]]></description>
		<content:encoded><![CDATA[<p>I want to Pagination using SQL. I having db Ms Sql 2000.<br />
Please help on this front.</p>
<p>Thanks in Adv.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhavin Patel</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-43241</link>
		<dc:creator><![CDATA[Bhavin Patel]]></dc:creator>
		<pubDate>Thu, 25 Sep 2008 11:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-43241</guid>
		<description><![CDATA[Good Use of RANK() function.]]></description>
		<content:encoded><![CDATA[<p>Good Use of RANK() function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web design</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-41669</link>
		<dc:creator><![CDATA[web design]]></dc:creator>
		<pubDate>Thu, 14 Aug 2008 07:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-41669</guid>
		<description><![CDATA[I just need to find the highest value row in a table. How do I do that? I assume it is going to be a simpler command.]]></description>
		<content:encoded><![CDATA[<p>I just need to find the highest value row in a table. How do I do that? I assume it is going to be a simpler command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky R</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-39487</link>
		<dc:creator><![CDATA[Rocky R]]></dc:creator>
		<pubDate>Wed, 25 Jun 2008 06:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-39487</guid>
		<description><![CDATA[Hi All,

I want to Pagination using SQL. I having db Ms Sql 2000.
Please help on this front.

Thanks in Adv.

Regards

Rocky R]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I want to Pagination using SQL. I having db Ms Sql 2000.<br />
Please help on this front.</p>
<p>Thanks in Adv.</p>
<p>Regards</p>
<p>Rocky R</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky R</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-39485</link>
		<dc:creator><![CDATA[Rocky R]]></dc:creator>
		<pubDate>Wed, 25 Jun 2008 06:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-39485</guid>
		<description><![CDATA[Hi All,

I want to do pagination using SQL, i having MS SQL 2000. It does not support row_number(). How can i do pagination !!

Please Help !!

Thanks on Adv.

Rocky R]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I want to do pagination using SQL, i having MS SQL 2000. It does not support row_number(). How can i do pagination !!</p>
<p>Please Help !!</p>
<p>Thanks on Adv.</p>
<p>Rocky R</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nidhi</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-39069</link>
		<dc:creator><![CDATA[Nidhi]]></dc:creator>
		<pubDate>Sat, 07 Jun 2008 07:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-39069</guid>
		<description><![CDATA[We can write this query like this also


Select * from table name order by desc  column name lmit1,1]]></description>
		<content:encoded><![CDATA[<p>We can write this query like this also</p>
<p>Select * from table name order by desc  column name lmit1,1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tej</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-35137</link>
		<dc:creator><![CDATA[tej]]></dc:creator>
		<pubDate>Wed, 16 Apr 2008 12:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-35137</guid>
		<description><![CDATA[how do we find positions of the record from a table using SQL SERVER 2000? for example 

table name : employee 

EMP_NAME    AGE    SALARY 
-----------------------------------
aaa               30       2000.00
abc                20      5000.00
bbb               40       3000.00
bbb               60       3000.00
ccc                 50       4000.00
xyz                25      1000.00
 
there is no primary key in this table.

In this table i want to find out 3rd record. i.e.
 bbb               40       3000.00]]></description>
		<content:encoded><![CDATA[<p>how do we find positions of the record from a table using SQL SERVER 2000? for example </p>
<p>table name : employee </p>
<p>EMP_NAME    AGE    SALARY<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
aaa               30       2000.00<br />
abc                20      5000.00<br />
bbb               40       3000.00<br />
bbb               60       3000.00<br />
ccc                 50       4000.00<br />
xyz                25      1000.00</p>
<p>there is no primary key in this table.</p>
<p>In this table i want to find out 3rd record. i.e.<br />
 bbb               40       3000.00</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akshay</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-34911</link>
		<dc:creator><![CDATA[Akshay]]></dc:creator>
		<pubDate>Tue, 08 Apr 2008 10:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-34911</guid>
		<description><![CDATA[@ Jerry Hung

    Can you give some more information on how row_number() will reduce performance?

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>@ Jerry Hung</p>
<p>    Can you give some more information on how row_number() will reduce performance?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shankar</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-34805</link>
		<dc:creator><![CDATA[Shankar]]></dc:creator>
		<pubDate>Wed, 02 Apr 2008 19:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-34805</guid>
		<description><![CDATA[owsem man.. this site has helped me very weill with my interview.

keep it up]]></description>
		<content:encoded><![CDATA[<p>owsem man.. this site has helped me very weill with my interview.</p>
<p>keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khadar Khan</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-34443</link>
		<dc:creator><![CDATA[Khadar Khan]]></dc:creator>
		<pubDate>Wed, 19 Mar 2008 07:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-34443</guid>
		<description><![CDATA[Very nice approach Nicholas.
I used the same query to gain little bit performance when we have to have the nth value out of very long list. This can give some performance boost. The inner query will give only the top results from which the top most row will be displayed

 USE AdventureWorks
GO
declare @nthVal int
set @nthVal=4--the required nth value

SELECT top 1 t.*
    FROM
		(
			SELECT top (@nthVal) e1.*,row_number() OVER (ORDER BY e1.Rate DESC) AS _Rank
			FROM HumanResources.EmployeePayHistory AS e1
		) AS t
order by t._Rank desc]]></description>
		<content:encoded><![CDATA[<p>Very nice approach Nicholas.<br />
I used the same query to gain little bit performance when we have to have the nth value out of very long list. This can give some performance boost. The inner query will give only the top results from which the top most row will be displayed</p>
<p> USE AdventureWorks<br />
GO<br />
declare @nthVal int<br />
set @nthVal=4&#8211;the required nth value</p>
<p>SELECT top 1 t.*<br />
    FROM<br />
		(<br />
			SELECT top (@nthVal) e1.*,row_number() OVER (ORDER BY e1.Rate DESC) AS _Rank<br />
			FROM HumanResources.EmployeePayHistory AS e1<br />
		) AS t<br />
order by t._Rank desc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajith</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-34442</link>
		<dc:creator><![CDATA[Ajith]]></dc:creator>
		<pubDate>Wed, 19 Mar 2008 06:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-34442</guid>
		<description><![CDATA[But if the records are duplicated i dont think it will return the correct result ??]]></description>
		<content:encoded><![CDATA[<p>But if the records are duplicated i dont think it will return the correct result ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-34352</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Sat, 15 Mar 2008 09:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-34352</guid>
		<description><![CDATA[Also see what you can do with row_number() function
http://sqlblogcasts.com/blog/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx

And many methods to find Nth Maximum value
http://sqlblogcasts.com/blog/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx]]></description>
		<content:encoded><![CDATA[<p>Also see what you can do with row_number() function<br />
<a href="http://sqlblogcasts.com/blog/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx" rel="nofollow">http://sqlblogcasts.com/blog/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx</a></p>
<p>And many methods to find Nth Maximum value<br />
<a href="http://sqlblogcasts.com/blog/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx" rel="nofollow">http://sqlblogcasts.com/blog/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2008/03/12/sql-server-2005-find-nth-highest-record-from-database-table-using-ranking-function-row_number/#comment-34292</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Wed, 12 Mar 2008 13:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=534#comment-34292</guid>
		<description><![CDATA[Yes, row_number() is quite useful in these cases, and during pagination

but it is a performance drag as well, especially for pagination
imagine assigning row # to millions of records, and only need record 50~100 for page 2]]></description>
		<content:encoded><![CDATA[<p>Yes, row_number() is quite useful in these cases, and during pagination</p>
<p>but it is a performance drag as well, especially for pagination<br />
imagine assigning row # to millions of records, and only need record 50~100 for page 2</p>
]]></content:encoded>
	</item>
</channel>
</rss>
