<?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; Guidelines and Coding Standards Complete List Download</title>
	<atom:link href="http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/</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: Murali</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-327984</link>
		<dc:creator><![CDATA[Murali]]></dc:creator>
		<pubDate>Fri, 10 Aug 2012 01:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-327984</guid>
		<description><![CDATA[Hi,
I am having a Question regarding to Database mail, the client requriment is  that he must receive the mail in Excel format, without using SSIS packages,can you please give me sugguest me regarding may I get in script form and through GUI.

Thanks &amp; Regards
Murali]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am having a Question regarding to Database mail, the client requriment is  that he must receive the mail in Excel format, without using SSIS packages,can you please give me sugguest me regarding may I get in script form and through GUI.</p>
<p>Thanks &amp; Regards<br />
Murali</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijayakumar</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-312956</link>
		<dc:creator><![CDATA[Vijayakumar]]></dc:creator>
		<pubDate>Fri, 13 Jul 2012 09:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-312956</guid>
		<description><![CDATA[Hi

Should we use Singular or Plural Database Table Names??

Thanks 
Vijayakumar P]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Should we use Singular or Plural Database Table Names??</p>
<p>Thanks<br />
Vijayakumar P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ABDUL KALAM AZAD SHAIK</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-240237</link>
		<dc:creator><![CDATA[ABDUL KALAM AZAD SHAIK]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 13:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-240237</guid>
		<description><![CDATA[how to use LOB data type in oracle database creation. and how to retrive those columns&gt;]]></description>
		<content:encoded><![CDATA[<p>how to use LOB data type in oracle database creation. and how to retrive those columns&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maraful</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-183579</link>
		<dc:creator><![CDATA[maraful]]></dc:creator>
		<pubDate>Wed, 26 Oct 2011 05:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-183579</guid>
		<description><![CDATA[can anyone help me with this please. . . thanks! ! 
iii.	The report can be sorted by Vendor #, Purchase Order # or Item #
1.	If sorted by Vendor #
a.	Group Header: Vendor # (Company Name)
b.	Details (in this order): PO #, Request Date, Warehouse, Item #, Unit of Measurement, Order Qty, Unit Cost, Discount Rate,  Ext. Net Cost
2.	If sorted by Purchase Order #
a.	Details (in this order): PO #, Vendor #, Request Date, Warehouse, Item #, Unit of Measurement, Order Qty, Unit Cost, Discount Rate, 
3.	If sorted by Item #
a.	Group Header: Item # (Description)
b.	Details (in this order): Warehouse, PO #, Vendor #, Request Date, Order]]></description>
		<content:encoded><![CDATA[<p>can anyone help me with this please. . . thanks! !<br />
iii.	The report can be sorted by Vendor #, Purchase Order # or Item #<br />
1.	If sorted by Vendor #<br />
a.	Group Header: Vendor # (Company Name)<br />
b.	Details (in this order): PO #, Request Date, Warehouse, Item #, Unit of Measurement, Order Qty, Unit Cost, Discount Rate,  Ext. Net Cost<br />
2.	If sorted by Purchase Order #<br />
a.	Details (in this order): PO #, Vendor #, Request Date, Warehouse, Item #, Unit of Measurement, Order Qty, Unit Cost, Discount Rate,<br />
3.	If sorted by Item #<br />
a.	Group Header: Item # (Description)<br />
b.	Details (in this order): Warehouse, PO #, Vendor #, Request Date, Order</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SivaKrishna</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-177204</link>
		<dc:creator><![CDATA[SivaKrishna]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 15:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-177204</guid>
		<description><![CDATA[Hi,

 In table one column passport  field is there it allows only unique values at same time it allows more than two nulls ( i know unique only allow only one null value for example in college more than two students does not have passport at that time it allows null values at the same time who have passport that id must be unique. is it possible can anybody knws plz send snd answer.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> In table one column passport  field is there it allows only unique values at same time it allows more than two nulls ( i know unique only allow only one null value for example in college more than two students does not have passport at that time it allows null values at the same time who have passport that id must be unique. is it possible can anybody knws plz send snd answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhildas</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-163907</link>
		<dc:creator><![CDATA[Nikhildas]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 09:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-163907</guid>
		<description><![CDATA[Hai Pinal sir,

Can we store a static value in sql server without table?]]></description>
		<content:encoded><![CDATA[<p>Hai Pinal sir,</p>
<p>Can we store a static value in sql server without table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh singu</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-163857</link>
		<dc:creator><![CDATA[dinesh singu]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 06:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-163857</guid>
		<description><![CDATA[Dave Sir Can you gives us reference books for oracle OCA certification books]]></description>
		<content:encoded><![CDATA[<p>Dave Sir Can you gives us reference books for oracle OCA certification books</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhildas</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-163563</link>
		<dc:creator><![CDATA[Nikhildas]]></dc:creator>
		<pubDate>Tue, 30 Aug 2011 09:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-163563</guid>
		<description><![CDATA[Create Table Document
(
	DocID	Int,
	PageID	Int,
	DocName	Varchar(100)
)

Insert into Document values 
(1,0,&#039;document Test&#039;),
(1,0,&#039;document Test&#039;),
(1,0,&#039;document Test&#039;),
(1,1,&#039;document Test&#039;),
(1,2,&#039;document Test&#039;),
(1,3,&#039;document Test&#039;),
(1,4,&#039;document Test&#039;),
(1,5,&#039;document Test&#039;),
(1,5,&#039;document Test&#039;),
(2,0,&#039;document Test&#039;),
(2,1,&#039;document Test&#039;),
(2,0,&#039;document Test&#039;),
(3,0,&#039;document Test&#039;),
(3,0,&#039;document Test&#039;)


Hai Sir,

I need a help...

I want to update the duplicate record with maximum of its pageID from the above table without use a loop.
After updation the DocID &amp; PageID combination of record should be unique.
For eg.,

Output will be :
DocID	PageID	DocName	
-----------------------	
1	0	&#039;document Test&#039;
1	6	&#039;document Test&#039;
1	7	&#039;document Test&#039;
1	1	&#039;document Test&#039;
1	2	&#039;document Test&#039;
1	3	&#039;document Test&#039;
1	4	&#039;document Test&#039;
1	5	&#039;document Test&#039;
1	8	&#039;document Test&#039;
2	0	&#039;document Test&#039;
2	1	&#039;document Test&#039;
3	0	&#039;document Test&#039;
3	1	&#039;document Test&#039;



Thank you,
Nikhildas
Cochin]]></description>
		<content:encoded><![CDATA[<p>Create Table Document<br />
(<br />
	DocID	Int,<br />
	PageID	Int,<br />
	DocName	Varchar(100)<br />
)</p>
<p>Insert into Document values<br />
(1,0,&#8217;document Test&#8217;),<br />
(1,0,&#8217;document Test&#8217;),<br />
(1,0,&#8217;document Test&#8217;),<br />
(1,1,&#8217;document Test&#8217;),<br />
(1,2,&#8217;document Test&#8217;),<br />
(1,3,&#8217;document Test&#8217;),<br />
(1,4,&#8217;document Test&#8217;),<br />
(1,5,&#8217;document Test&#8217;),<br />
(1,5,&#8217;document Test&#8217;),<br />
(2,0,&#8217;document Test&#8217;),<br />
(2,1,&#8217;document Test&#8217;),<br />
(2,0,&#8217;document Test&#8217;),<br />
(3,0,&#8217;document Test&#8217;),<br />
(3,0,&#8217;document Test&#8217;)</p>
<p>Hai Sir,</p>
<p>I need a help&#8230;</p>
<p>I want to update the duplicate record with maximum of its pageID from the above table without use a loop.<br />
After updation the DocID &amp; PageID combination of record should be unique.<br />
For eg.,</p>
<p>Output will be :<br />
DocID	PageID	DocName<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1	0	&#8216;document Test&#8217;<br />
1	6	&#8216;document Test&#8217;<br />
1	7	&#8216;document Test&#8217;<br />
1	1	&#8216;document Test&#8217;<br />
1	2	&#8216;document Test&#8217;<br />
1	3	&#8216;document Test&#8217;<br />
1	4	&#8216;document Test&#8217;<br />
1	5	&#8216;document Test&#8217;<br />
1	8	&#8216;document Test&#8217;<br />
2	0	&#8216;document Test&#8217;<br />
2	1	&#8216;document Test&#8217;<br />
3	0	&#8216;document Test&#8217;<br />
3	1	&#8216;document Test&#8217;</p>
<p>Thank you,<br />
Nikhildas<br />
Cochin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-137199</link>
		<dc:creator><![CDATA[ravi]]></dc:creator>
		<pubDate>Sat, 28 May 2011 13:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-137199</guid>
		<description><![CDATA[hi,

I&#039;m new to sql.I have a problem some one asked in one of my interview.he was asking like this&quot;how to split one table data into two table result set but result should be side by side means




table:

id name sal
1 ravi 1000
2 kishore 2000
3 naveen 3000
4 suresh 4000



resulet:

id name sal         :  id name sal
1 ravi 1000         : 2 kishore 2000
3 kishore 3000   : 4 suresh 4000


note:result shoud be appears in single window

can any one help me.]]></description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I&#8217;m new to sql.I have a problem some one asked in one of my interview.he was asking like this&#8221;how to split one table data into two table result set but result should be side by side means</p>
<p>table:</p>
<p>id name sal<br />
1 ravi 1000<br />
2 kishore 2000<br />
3 naveen 3000<br />
4 suresh 4000</p>
<p>resulet:</p>
<p>id name sal         :  id name sal<br />
1 ravi 1000         : 2 kishore 2000<br />
3 kishore 3000   : 4 suresh 4000</p>
<p>note:result shoud be appears in single window</p>
<p>can any one help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-124364</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 22 Mar 2011 07:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-124364</guid>
		<description><![CDATA[What did you mean by concatenation?]]></description>
		<content:encoded><![CDATA[<p>What did you mean by concatenation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamal sharma</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-123798</link>
		<dc:creator><![CDATA[kamal sharma]]></dc:creator>
		<pubDate>Fri, 18 Mar 2011 12:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-123798</guid>
		<description><![CDATA[Hi Pinal 

create  Procedure [dbo].[sp_become_acc_reviewer_content]
(
  @become_acc_reviewer text,
  @action varchar(20) 
)
as
begin
if(@action = &#039;insert&#039;)
begin
insert tbl_crm_details([become_ an_acc_reviewer])values(@become_acc_reviewer) 
End
else 
begin
update tbl_crm_details set [become_ an_acc_reviewer]=@become_acc_reviewer
end 
end
 
when i save data in second time its save a new row
what i want to concatenate this
how can i do this

plz give me solution
 thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal </p>
<p>create  Procedure [dbo].[sp_become_acc_reviewer_content]<br />
(<br />
  @become_acc_reviewer text,<br />
  @action varchar(20)<br />
)<br />
as<br />
begin<br />
if(@action = &#8216;insert&#8217;)<br />
begin<br />
insert tbl_crm_details([become_ an_acc_reviewer])values(@become_acc_reviewer)<br />
End<br />
else<br />
begin<br />
update tbl_crm_details set [become_ an_acc_reviewer]=@become_acc_reviewer<br />
end<br />
end</p>
<p>when i save data in second time its save a new row<br />
what i want to concatenate this<br />
how can i do this</p>
<p>plz give me solution<br />
 thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-99278</link>
		<dc:creator><![CDATA[richard]]></dc:creator>
		<pubDate>Fri, 12 Nov 2010 09:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-99278</guid>
		<description><![CDATA[pinaldave pls advise..]]></description>
		<content:encoded><![CDATA[<p>pinaldave pls advise..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-99277</link>
		<dc:creator><![CDATA[richard]]></dc:creator>
		<pubDate>Fri, 12 Nov 2010 09:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-99277</guid>
		<description><![CDATA[hi jp,

i&#039;m new to dis site...as i m very much interested in learning sql database nd nw i no the basics of sql but not deeper..wat i hav to do to go get strong in sql...

pls advise...]]></description>
		<content:encoded><![CDATA[<p>hi jp,</p>
<p>i&#8217;m new to dis site&#8230;as i m very much interested in learning sql database nd nw i no the basics of sql but not deeper..wat i hav to do to go get strong in sql&#8230;</p>
<p>pls advise&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aankur singla</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-89296</link>
		<dc:creator><![CDATA[aankur singla]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 18:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-89296</guid>
		<description><![CDATA[SELECT TOP 1 FROM EMP ORDER BY SALARY DESC]]></description>
		<content:encoded><![CDATA[<p>SELECT TOP 1 FROM EMP ORDER BY SALARY DESC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-89250</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 11:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-89250</guid>
		<description><![CDATA[Another option is to run this

EXEC sp_databases]]></description>
		<content:encoded><![CDATA[<p>Another option is to run this</p>
<p>EXEC sp_databases</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-89247</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 11:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-89247</guid>
		<description><![CDATA[It means the query doesn&#039;t return any data]]></description>
		<content:encoded><![CDATA[<p>It means the query doesn&#8217;t return any data</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-89244</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 10:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-89244</guid>
		<description><![CDATA[Why do you want not to use anu sql function?]]></description>
		<content:encoded><![CDATA[<p>Why do you want not to use anu sql function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Dixit</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-89242</link>
		<dc:creator><![CDATA[Nitin Dixit]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 10:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-89242</guid>
		<description><![CDATA[want to find highest salary from emp(eid,department,salary) without using any sql function.]]></description>
		<content:encoded><![CDATA[<p>want to find highest salary from emp(eid,department,salary) without using any sql function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79387</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 08:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79387</guid>
		<description><![CDATA[select * from employee where salary=(select max(salary) from employee)]]></description>
		<content:encoded><![CDATA[<p>select * from employee where salary=(select max(salary) from employee)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79386</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 08:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79386</guid>
		<description><![CDATA[In person.address, the name person is a user name who created the name. Only address is the actual table name]]></description>
		<content:encoded><![CDATA[<p>In person.address, the name person is a user name who created the name. Only address is the actual table name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79379</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 07:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79379</guid>
		<description><![CDATA[Apply this logic

select department,count(*) as total_emp,sum(case when status=&#039;waiting list&#039; then 1 else 0 end) as waiting_list from table]]></description>
		<content:encoded><![CDATA[<p>Apply this logic</p>
<p>select department,count(*) as total_emp,sum(case when status=&#8217;waiting list&#8217; then 1 else 0 end) as waiting_list from table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79378</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 07:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79378</guid>
		<description><![CDATA[The value of @@rowcount changes dynamically based on the statement. The IF statement doesn&#039;t return any row so it becomes 0. You should always assign a value to a variable and use that variable]]></description>
		<content:encoded><![CDATA[<p>The value of @@rowcount changes dynamically based on the statement. The IF statement doesn&#8217;t return any row so it becomes 0. You should always assign a value to a variable and use that variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JB</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79342</link>
		<dc:creator><![CDATA[JB]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 03:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79342</guid>
		<description><![CDATA[Hi,

Why @@rowcount is 0 in the following case :

Create procedure getEmp
AS
SELECT     *
FROM         HumanResources.Employee
if @@rowcount &gt; 0
		select @@rowcount
GO

- JB]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Why @@rowcount is 0 in the following case :</p>
<p>Create procedure getEmp<br />
AS<br />
SELECT     *<br />
FROM         HumanResources.Employee<br />
if @@rowcount &gt; 0<br />
		select @@rowcount<br />
GO</p>
<p>- JB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JB</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79341</link>
		<dc:creator><![CDATA[JB]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 03:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79341</guid>
		<description><![CDATA[Hi,

Why @@rowcount is 0(without assigning to another variable) in the following case :

Create procedure getEmp
AS
SELECT     *
FROM         HumanResources.Employee

		select @@rowcount
GO]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Why @@rowcount is 0(without assigning to another variable) in the following case :</p>
<p>Create procedure getEmp<br />
AS<br />
SELECT     *<br />
FROM         HumanResources.Employee</p>
<p>		select @@rowcount<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Govind Nair</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comment-79308</link>
		<dc:creator><![CDATA[Govind Nair]]></dc:creator>
		<pubDate>Thu, 08 Jul 2010 22:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143#comment-79308</guid>
		<description><![CDATA[Most likely there will be only one salary amount associated with en employee ID, Employee combination.  However, assuming that you just need to find which employee name draws the highest salary, this query should help:

select		top 1 employeename, MAX(salary)
from		Employeetable
group by	employeename
order by	MAX(salary) desc]]></description>
		<content:encoded><![CDATA[<p>Most likely there will be only one salary amount associated with en employee ID, Employee combination.  However, assuming that you just need to find which employee name draws the highest salary, this query should help:</p>
<p>select		top 1 employeename, MAX(salary)<br />
from		Employeetable<br />
group by	employeename<br />
order by	MAX(salary) desc</p>
]]></content:encoded>
	</item>
</channel>
</rss>
