<?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; How to Retrieve TOP and BOTTOM Rows Together using T-SQL</title>
	<atom:link href="http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/</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: Gyana</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-451584</link>
		<dc:creator><![CDATA[Gyana]]></dc:creator>
		<pubDate>Mon, 08 Apr 2013 05:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-451584</guid>
		<description><![CDATA[Thanks this helps me a lot...]]></description>
		<content:encoded><![CDATA[<p>Thanks this helps me a lot&#8230;</p>
]]></content:encoded>
	</item>
	<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/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-438050</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:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-438050</guid>
		<description><![CDATA[[...] Part 1 &#124; Part 2 &#124; Part 3 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Part 1 | Part 2 | Part 3 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #018 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-430058</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #018 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 02 Mar 2013 01:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-430058</guid>
		<description><![CDATA[[...] How to Retrieve TOP and BOTTOM Rows Together using T-SQL I had to find TOP 1 and BOTTOM 1 record together. I right away that I should just do UNION but then I realize that UNION will not work as it will only accept one ORDER BY clause. If you specify more than one ORDER BY clause. It will give error. In this blog post, I explain how the same can be achieved with simple T-SQL script. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] How to Retrieve TOP and BOTTOM Rows Together using T-SQL I had to find TOP 1 and BOTTOM 1 record together. I right away that I should just do UNION but then I realize that UNION will not work as it will only accept one ORDER BY clause. If you specify more than one ORDER BY clause. It will give error. In this blog post, I explain how the same can be achieved with simple T-SQL script. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selvam</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-352594</link>
		<dc:creator><![CDATA[Selvam]]></dc:creator>
		<pubDate>Mon, 24 Sep 2012 13:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-352594</guid>
		<description><![CDATA[Hai, i need to get the full dynamic query from a stored procedure without using &quot;Print&quot;]]></description>
		<content:encoded><![CDATA[<p>Hai, i need to get the full dynamic query from a stored procedure without using &#8220;Print&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanmay Kundu</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-265616</link>
		<dc:creator><![CDATA[Tanmay Kundu]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 10:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-265616</guid>
		<description><![CDATA[how i get value from bottom of table , not desc function use. please help me]]></description>
		<content:encoded><![CDATA[<p>how i get value from bottom of table , not desc function use. please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vkm</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-257955</link>
		<dc:creator><![CDATA[vkm]]></dc:creator>
		<pubDate>Wed, 29 Feb 2012 14:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-257955</guid>
		<description><![CDATA[select top 5 * from Sales.SalesOrderDetail
union 
select top 5 * from (select  top 5 * from Sales.SalesOrderDetail order by SalesOrderDetailID desc) b]]></description>
		<content:encoded><![CDATA[<p>select top 5 * from Sales.SalesOrderDetail<br />
union<br />
select top 5 * from (select  top 5 * from Sales.SalesOrderDetail order by SalesOrderDetailID desc) b</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-205187</link>
		<dc:creator><![CDATA[Diego]]></dc:creator>
		<pubDate>Sat, 26 Nov 2011 23:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-205187</guid>
		<description><![CDATA[I gess in SQL Server  2008 you can use ORDER BY if you use UNION... not UNION ALL.]]></description>
		<content:encoded><![CDATA[<p>I gess in SQL Server  2008 you can use ORDER BY if you use UNION&#8230; not UNION ALL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajkumar</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-189925</link>
		<dc:creator><![CDATA[Rajkumar]]></dc:creator>
		<pubDate>Mon, 07 Nov 2011 07:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-189925</guid>
		<description><![CDATA[WITH SQN(COUNTRY,ROW)
AS
(
SELECT COUNTRY_CODE,ROW_NUMBER() OVER( ORDER BY COUNTRY_CODE) AS &#039;ROWNUM&#039;  FROM SET_COUNTRY )

SELECT COUNTRY FROM SQN WHERE ROW = (SELECT MAX(ROW) FROM SQN) OR ROW = (SELECT MIN(ROW) FROM SQN)]]></description>
		<content:encoded><![CDATA[<p>WITH SQN(COUNTRY,ROW)<br />
AS<br />
(<br />
SELECT COUNTRY_CODE,ROW_NUMBER() OVER( ORDER BY COUNTRY_CODE) AS &#8216;ROWNUM&#8217;  FROM SET_COUNTRY )</p>
<p>SELECT COUNTRY FROM SQN WHERE ROW = (SELECT MAX(ROW) FROM SQN) OR ROW = (SELECT MIN(ROW) FROM SQN)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-178381</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 12:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-178381</guid>
		<description><![CDATA[Please note that SET ROWCOUNT may not work in future release of the SQL Server. You should try to use TOP operator instead.]]></description>
		<content:encoded><![CDATA[<p>Please note that SET ROWCOUNT may not work in future release of the SQL Server. You should try to use TOP operator instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-178369</link>
		<dc:creator><![CDATA[vijay]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 11:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-178369</guid>
		<description><![CDATA[USE COMMAND

SET ROWCOUNT 10]]></description>
		<content:encoded><![CDATA[<p>USE COMMAND</p>
<p>SET ROWCOUNT 10</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-178367</link>
		<dc:creator><![CDATA[vijay]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 11:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-178367</guid>
		<description><![CDATA[you can use
set rowcount 
May be it helps]]></description>
		<content:encoded><![CDATA[<p>you can use<br />
set rowcount<br />
May be it helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sagar</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-177795</link>
		<dc:creator><![CDATA[Sagar]]></dc:creator>
		<pubDate>Wed, 12 Oct 2011 04:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-177795</guid>
		<description><![CDATA[its helpfull for me.... :)
thankss.!!!!1]]></description>
		<content:encoded><![CDATA[<p>its helpfull for me&#8230;. :)<br />
thankss.!!!!1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayakumar</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-173454</link>
		<dc:creator><![CDATA[Jayakumar]]></dc:creator>
		<pubDate>Fri, 30 Sep 2011 07:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-173454</guid>
		<description><![CDATA[How to show row wise union Query 

how to change this

Select Distinct StdStandard,Count(*)as Cnt1 from Tbl_Students
where StdRegNo not in (Select StdRegisterNo from Tbl_StdFeeAllocation)
group by StdStandard 
union all
Select Distinct StdStandard,Count(*)as Cnt1 from Tbl_Students
where StdRegNo in(Select StdRegisterNo from Tbl_StdFeeAllocation)
group by StdStandard]]></description>
		<content:encoded><![CDATA[<p>How to show row wise union Query </p>
<p>how to change this</p>
<p>Select Distinct StdStandard,Count(*)as Cnt1 from Tbl_Students<br />
where StdRegNo not in (Select StdRegisterNo from Tbl_StdFeeAllocation)<br />
group by StdStandard<br />
union all<br />
Select Distinct StdStandard,Count(*)as Cnt1 from Tbl_Students<br />
where StdRegNo in(Select StdRegisterNo from Tbl_StdFeeAllocation)<br />
group by StdStandard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohanraj</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-155363</link>
		<dc:creator><![CDATA[Mohanraj]]></dc:creator>
		<pubDate>Tue, 09 Aug 2011 10:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-155363</guid>
		<description><![CDATA[Hi,
I am having a 1000 records in a table.I need to select top 100 records first and then again next 100 records and again next 100 records like that.How to write a select query without using cursor or row_number or rank.......?]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am having a 1000 records in a table.I need to select top 100 records first and then again next 100 records and again next 100 records like that.How to write a select query without using cursor or row_number or rank&#8230;&#8230;.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-147373</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 08:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-147373</guid>
		<description><![CDATA[select top 5 with ties columns from table order by somecol]]></description>
		<content:encoded><![CDATA[<p>select top 5 with ties columns from table order by somecol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-147258</link>
		<dc:creator><![CDATA[praveen]]></dc:creator>
		<pubDate>Sun, 10 Jul 2011 14:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-147258</guid>
		<description><![CDATA[I have two tables employee table(emp_no,Emp_name,sal)and product table (Prodct_id,prodcut_name) table retrive top 5  redcods from table without duplicate values How...........
Please help me....]]></description>
		<content:encoded><![CDATA[<p>I have two tables employee table(emp_no,Emp_name,sal)and product table (Prodct_id,prodcut_name) table retrive top 5  redcods from table without duplicate values How&#8230;&#8230;&#8230;..<br />
Please help me&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mithila</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-141026</link>
		<dc:creator><![CDATA[mithila]]></dc:creator>
		<pubDate>Wed, 15 Jun 2011 06:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-141026</guid>
		<description><![CDATA[Hi
 I want to select top 4 valus of sql table unsing vb.net win form.. how to do it?]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
 I want to select top 4 valus of sql table unsing vb.net win form.. how to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cindy</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-137008</link>
		<dc:creator><![CDATA[cindy]]></dc:creator>
		<pubDate>Fri, 27 May 2011 09:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-137008</guid>
		<description><![CDATA[Hi, I really enjoy your blog! I am a beginner in MS-SQL and there are many things I still do not know how to do. I have a table where i want to find the winner in a lemonade sale. The table goes sth like this:

first_name     sale    date
damon           3.50   2007-6-1
damon           6.99   2007-6-2
stefan            1.50   2007-6-1
stefan            2.00   2007-6-2

I want to find the one with the highest sales over the two days. I tried using your code but it doesnt work. I can only use it to find the first n rows in my table. Also, when I try to find the top 3 rows, it returns me 4 rows! Can you plz help me?]]></description>
		<content:encoded><![CDATA[<p>Hi, I really enjoy your blog! I am a beginner in MS-SQL and there are many things I still do not know how to do. I have a table where i want to find the winner in a lemonade sale. The table goes sth like this:</p>
<p>first_name     sale    date<br />
damon           3.50   2007-6-1<br />
damon           6.99   2007-6-2<br />
stefan            1.50   2007-6-1<br />
stefan            2.00   2007-6-2</p>
<p>I want to find the one with the highest sales over the two days. I tried using your code but it doesnt work. I can only use it to find the first n rows in my table. Also, when I try to find the top 3 rows, it returns me 4 rows! Can you plz help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lex</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-132301</link>
		<dc:creator><![CDATA[lex]]></dc:creator>
		<pubDate>Sun, 01 May 2011 16:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-132301</guid>
		<description><![CDATA[That was fun. I was at my wit&#039;s end when I came upon this article. I was trying this query:

INSERT INTO currenttrans ( transactionnumber, transactionsched, transactionid )
SELECT TOP 1 transactionnumber, transactionsched, transactionid
FROM permdatqueue
ORDER BY transactionsched;

Instead of giving me just one row, it gave me multiple rows. So I modified it after reading this article and came up with:


INSERT INTO currenttrans ( transactionnumber, transactionsched, transactionid )
SELECT transactionnumber, transactionsched, transactionid
FROM permdatqueue
WHERE transactionid in (select top 1 transactionid from permdatqueue
order by transactionid asc)
ORDER BY transactionsched;

...which gave me the result I needed. Many thanks!]]></description>
		<content:encoded><![CDATA[<p>That was fun. I was at my wit&#8217;s end when I came upon this article. I was trying this query:</p>
<p>INSERT INTO currenttrans ( transactionnumber, transactionsched, transactionid )<br />
SELECT TOP 1 transactionnumber, transactionsched, transactionid<br />
FROM permdatqueue<br />
ORDER BY transactionsched;</p>
<p>Instead of giving me just one row, it gave me multiple rows. So I modified it after reading this article and came up with:</p>
<p>INSERT INTO currenttrans ( transactionnumber, transactionsched, transactionid )<br />
SELECT transactionnumber, transactionsched, transactionid<br />
FROM permdatqueue<br />
WHERE transactionid in (select top 1 transactionid from permdatqueue<br />
order by transactionid asc)<br />
ORDER BY transactionsched;</p>
<p>&#8230;which gave me the result I needed. Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ric</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-131544</link>
		<dc:creator><![CDATA[Ric]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 13:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-131544</guid>
		<description><![CDATA[Simple and effective (to Pinal Dave&#039;s solution). I am particularly leaning towards the CTE route, it&#039;s nice, clean and efficient. 
Thanks to all! :)]]></description>
		<content:encoded><![CDATA[<p>Simple and effective (to Pinal Dave&#8217;s solution). I am particularly leaning towards the CTE route, it&#8217;s nice, clean and efficient.<br />
Thanks to all! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mwongera</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-126234</link>
		<dc:creator><![CDATA[mwongera]]></dc:creator>
		<pubDate>Sat, 02 Apr 2011 14:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-126234</guid>
		<description><![CDATA[Have read all comments regarding sql but still cannot find a way locating the Nth record in simple way.]]></description>
		<content:encoded><![CDATA[<p>Have read all comments regarding sql but still cannot find a way locating the Nth record in simple way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varun</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-124764</link>
		<dc:creator><![CDATA[Varun]]></dc:creator>
		<pubDate>Thu, 24 Mar 2011 05:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-124764</guid>
		<description><![CDATA[Awesome blog. My 2 cents for the problem: 

select * from(
	SELECT TOP 1 *
	FROM Sales.SalesOrderDetail
	ORDER BY SalesOrderDetailID ASC
	
	UNION ALL
	
	SELECT TOP 1 *
	FROM Sales.SalesOrderDetail
	ORDER BY SalesOrderDetailID desc
) as a]]></description>
		<content:encoded><![CDATA[<p>Awesome blog. My 2 cents for the problem: </p>
<p>select * from(<br />
	SELECT TOP 1 *<br />
	FROM Sales.SalesOrderDetail<br />
	ORDER BY SalesOrderDetailID ASC</p>
<p>	UNION ALL</p>
<p>	SELECT TOP 1 *<br />
	FROM Sales.SalesOrderDetail<br />
	ORDER BY SalesOrderDetailID desc<br />
) as a</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-120112</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 22 Feb 2011 14:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-120112</guid>
		<description><![CDATA[Without an order by caluse it is not possible. If you have any unique column, order by it]]></description>
		<content:encoded><![CDATA[<p>Without an order by caluse it is not possible. If you have any unique column, order by it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Kumar Dey</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-119808</link>
		<dc:creator><![CDATA[Ashish Kumar Dey]]></dc:creator>
		<pubDate>Mon, 21 Feb 2011 06:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-119808</guid>
		<description><![CDATA[then please tell me how to find out the default records in the table. i need top/bottom inserted records accordingly.]]></description>
		<content:encoded><![CDATA[<p>then please tell me how to find out the default records in the table. i need top/bottom inserted records accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-119132</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 18 Feb 2011 10:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-119132</guid>
		<description><![CDATA[top without order by clause is meaningless]]></description>
		<content:encoded><![CDATA[<p>top without order by clause is meaningless</p>
]]></content:encoded>
	</item>
</channel>
</rss>
