<?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, 10 Feb 2012 04:35:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<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>
	<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-118959</link>
		<dc:creator><![CDATA[Ashish Kumar Dey]]></dc:creator>
		<pubDate>Thu, 17 Feb 2011 12:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-118959</guid>
		<description><![CDATA[Find out the bottom 8 defaults rows 

SELECT * FROM scm_emp_master (NOLOCK) 
where emp_emp_code not in 
(select top ((SELECT count(*)-8 FROM scm_emp_master )) emp_emp_code &#039;emp_code&#039; from scm_emp_master)]]></description>
		<content:encoded><![CDATA[<p>Find out the bottom 8 defaults rows </p>
<p>SELECT * FROM scm_emp_master (NOLOCK)<br />
where emp_emp_code not in<br />
(select top ((SELECT count(*)-8 FROM scm_emp_master )) emp_emp_code &#8216;emp_code&#8217; from scm_emp_master)</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-104150</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 07 Dec 2010 12:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-104150</guid>
		<description><![CDATA[It means you have data which can&#039;t be converted to decimal]]></description>
		<content:encoded><![CDATA[<p>It means you have data which can&#8217;t be converted to decimal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selva</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-103974</link>
		<dc:creator><![CDATA[selva]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 12:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-103974</guid>
		<description><![CDATA[hi

I have writen code  below

                          (SELECT DISTINCT cast(dbo.ParaNu(OrderItemId) AS decimal(38)) AS Expr1
                            FROM          OrderItemParameters AS OrderItemParameters)  

but i got error msg &quot;Error converting data type varchar to numeric.&quot;

any one help me what i had mistake ????


Thanks 

selva]]></description>
		<content:encoded><![CDATA[<p>hi</p>
<p>I have writen code  below</p>
<p>                          (SELECT DISTINCT cast(dbo.ParaNu(OrderItemId) AS decimal(38)) AS Expr1<br />
                            FROM          OrderItemParameters AS OrderItemParameters)  </p>
<p>but i got error msg &#8220;Error converting data type varchar to numeric.&#8221;</p>
<p>any one help me what i had mistake ????</p>
<p>Thanks </p>
<p>selva</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selva</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-103971</link>
		<dc:creator><![CDATA[selva]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 11:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-103971</guid>
		<description><![CDATA[Hi

Hot to get currency symbole from my pc regional setting in sql 2008

Thanks

Selva]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Hot to get currency symbole from my pc regional setting in sql 2008</p>
<p>Thanks</p>
<p>Selva</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selva</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-103970</link>
		<dc:creator><![CDATA[selva]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 11:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-103970</guid>
		<description><![CDATA[Hi   


Hot to  get  currency symbole from my pc in sql 2008



Thanks  

Selva]]></description>
		<content:encoded><![CDATA[<p>Hi   </p>
<p>Hot to  get  currency symbole from my pc in sql 2008</p>
<p>Thanks  </p>
<p>Selva</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selva</title>
		<link>http://blog.sqlauthority.com/2008/03/02/sql-server-how-to-retrieve-top-and-bottom-rows-together-using-t-sql/#comment-103447</link>
		<dc:creator><![CDATA[selva]]></dc:creator>
		<pubDate>Thu, 02 Dec 2010 15:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=524#comment-103447</guid>
		<description><![CDATA[Hi  All

i have writen query below,

(SELECT     TOP (1) DefaultValueList
  FROM          OrderItemParameters AS oip
WHERE   (OrderItemId = oi.Id) AND (Name LIKE &#039;B%&#039;)) AS B,

(SELECT     TOP (2) DefaultValueList
  FROM          OrderItemParameters AS oip
WHERE   (OrderItemId = oi.Id) AND (Name LIKE &#039;B%&#039;)) AS B1,

but i got error &quot;Subquery returned more than 1 value&quot;

but i need parameter will be read like  Buch  and  bracket both ,

how i should read  like this]]></description>
		<content:encoded><![CDATA[<p>Hi  All</p>
<p>i have writen query below,</p>
<p>(SELECT     TOP (1) DefaultValueList<br />
  FROM          OrderItemParameters AS oip<br />
WHERE   (OrderItemId = oi.Id) AND (Name LIKE &#8216;B%&#8217;)) AS B,</p>
<p>(SELECT     TOP (2) DefaultValueList<br />
  FROM          OrderItemParameters AS oip<br />
WHERE   (OrderItemId = oi.Id) AND (Name LIKE &#8216;B%&#8217;)) AS B1,</p>
<p>but i got error &#8220;Subquery returned more than 1 value&#8221;</p>
<p>but i need parameter will be read like  Buch  and  bracket both ,</p>
<p>how i should read  like this</p>
]]></content:encoded>
	</item>
</channel>
</rss>

