<?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; 2008 &#8211; Interview Questions and Answers &#8211; Part 2</title>
	<atom:link href="http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Wed, 19 Jun 2013 15:04:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: kirtika</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-445759</link>
		<dc:creator><![CDATA[kirtika]]></dc:creator>
		<pubDate>Thu, 28 Mar 2013 05:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-445759</guid>
		<description><![CDATA[Hello sir,

Thank u for the amazing SQL resource.. i am a big fan of u sir.. 

Regards
kirtika]]></description>
		<content:encoded><![CDATA[<p>Hello sir,</p>
<p>Thank u for the amazing SQL resource.. i am a big fan of u sir.. </p>
<p>Regards<br />
kirtika</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sainath iyer</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-379949</link>
		<dc:creator><![CDATA[sainath iyer]]></dc:creator>
		<pubDate>Sat, 24 Nov 2012 11:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-379949</guid>
		<description><![CDATA[NICE]]></description>
		<content:encoded><![CDATA[<p>NICE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snehalata</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-315155</link>
		<dc:creator><![CDATA[Snehalata]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 09:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-315155</guid>
		<description><![CDATA[Hi Pinal,
I am working in an mnc. and my main role release Engineer and i need to do website and ssrs script  deployements. Can u pls suggest me what all concepts i need to study for upcoming interviews for the same role.

Thanks 
Regards,
Sneha]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
I am working in an mnc. and my main role release Engineer and i need to do website and ssrs script  deployements. Can u pls suggest me what all concepts i need to study for upcoming interviews for the same role.</p>
<p>Thanks<br />
Regards,<br />
Sneha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-265187</link>
		<dc:creator><![CDATA[praveen]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 06:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-265187</guid>
		<description><![CDATA[hi pinal thanks for your support...]]></description>
		<content:encoded><![CDATA[<p>hi pinal thanks for your support&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amar</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-207929</link>
		<dc:creator><![CDATA[amar]]></dc:creator>
		<pubDate>Wed, 30 Nov 2011 11:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-207929</guid>
		<description><![CDATA[Hi Pinal,

Thanks for everything. I appreciate your effort to provide us everything simple and accurate.
I have two questions about cursor.
Mostly we are asked to avoid cursors, is there any situation when we must have to use a cursor? and what is the most important benifit using a cursor?]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks for everything. I appreciate your effort to provide us everything simple and accurate.<br />
I have two questions about cursor.<br />
Mostly we are asked to avoid cursors, is there any situation when we must have to use a cursor? and what is the most important benifit using a cursor?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepthi</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-185733</link>
		<dc:creator><![CDATA[Deepthi]]></dc:creator>
		<pubDate>Mon, 31 Oct 2011 04:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-185733</guid>
		<description><![CDATA[Hi Pinal

I am Deepthi..This is really a very informative site..It gives good knowledge of sql server...

I have a small doubt..Can you just tell me whats the difference between a view and user defined function..in which situations each of them will be used...]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>I am Deepthi..This is really a very informative site..It gives good knowledge of sql server&#8230;</p>
<p>I have a small doubt..Can you just tell me whats the difference between a view and user defined function..in which situations each of them will be used&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sajal Bagchi</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-166086</link>
		<dc:creator><![CDATA[Sajal Bagchi]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 01:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-166086</guid>
		<description><![CDATA[The best resources one can ever find related to SQL Server.
Thank you so much for sharing the valuable information. Keep doing the good deeds.]]></description>
		<content:encoded><![CDATA[<p>The best resources one can ever find related to SQL Server.<br />
Thank you so much for sharing the valuable information. Keep doing the good deeds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhanavel</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-149982</link>
		<dc:creator><![CDATA[dhanavel]]></dc:creator>
		<pubDate>Fri, 22 Jul 2011 07:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-149982</guid>
		<description><![CDATA[i am very much interested to learn sql server can u send complex queries, questions,please help any professionals]]></description>
		<content:encoded><![CDATA[<p>i am very much interested to learn sql server can u send complex queries, questions,please help any professionals</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak madheshiya</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-142442</link>
		<dc:creator><![CDATA[Deepak madheshiya]]></dc:creator>
		<pubDate>Mon, 20 Jun 2011 11:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-142442</guid>
		<description><![CDATA[Thanks  sir,]]></description>
		<content:encoded><![CDATA[<p>Thanks  sir,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikesh</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-124283</link>
		<dc:creator><![CDATA[Nikesh]]></dc:creator>
		<pubDate>Mon, 21 Mar 2011 19:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-124283</guid>
		<description><![CDATA[hello sir,

really it is a good site to all type of exp person could u send me some of the important questions for my further interview 


Looking forward for your replay sir

thanking you 
nikesh]]></description>
		<content:encoded><![CDATA[<p>hello sir,</p>
<p>really it is a good site to all type of exp person could u send me some of the important questions for my further interview </p>
<p>Looking forward for your replay sir</p>
<p>thanking you<br />
nikesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajith</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-124139</link>
		<dc:creator><![CDATA[Ajith]]></dc:creator>
		<pubDate>Sun, 20 Mar 2011 11:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-124139</guid>
		<description><![CDATA[Hi

IN the question for difference between stored procedure and functions. Do user defined functions compile and has a plan. if not then is it wise to say that, we can use functions also in places where the SQL engine does not need to store the plan and where a logic needs to be called 1000 times but there is no need to store the plan and take procedure cache space.]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>IN the question for difference between stored procedure and functions. Do user defined functions compile and has a plan. if not then is it wise to say that, we can use functions also in places where the SQL engine does not need to store the plan and where a logic needs to be called 1000 times but there is no need to store the plan and take procedure cache space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-123341</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 15 Mar 2011 15:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-123341</guid>
		<description><![CDATA[Use a different alias

select t1.Eno,t1.Ename,t2.DeptNo
from EMPP as t1 innor join Dept as t2
on t1.Eno=t2.DNo]]></description>
		<content:encoded><![CDATA[<p>Use a different alias</p>
<p>select t1.Eno,t1.Ename,t2.DeptNo<br />
from EMPP as t1 innor join Dept as t2<br />
on t1.Eno=t2.DNo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-123312</link>
		<dc:creator><![CDATA[venkat]]></dc:creator>
		<pubDate>Tue, 15 Mar 2011 10:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-123312</guid>
		<description><![CDATA[hi sir,

i am working with sqlserver2008
i got one problem 
in joins

select *from EMPP
select *from Dept
-------------------------------
select EMPP.Eno,EMPP.Ename,Dept.DeptNo
from EMPP innor join Dept
on EMPP.Eno=Dept.DNo
---------------------------------------------------

Msg 4104, Level 16, State 1, Line 4
The multi-part identifier &quot;EMPP.Eno&quot; could not be bound.
Msg 4104, Level 16, State 1, Line 2
The multi-part identifier &quot;EMPP.Eno&quot; could not be bound.
Msg 4104, Level 16, State 1, Line 2
The multi-part identifier &quot;EMPP.Ename&quot; could not be bound.

Plz Help me, how to avoid this Error]]></description>
		<content:encoded><![CDATA[<p>hi sir,</p>
<p>i am working with sqlserver2008<br />
i got one problem<br />
in joins</p>
<p>select *from EMPP<br />
select *from Dept<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
select EMPP.Eno,EMPP.Ename,Dept.DeptNo<br />
from EMPP innor join Dept<br />
on EMPP.Eno=Dept.DNo<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Msg 4104, Level 16, State 1, Line 4<br />
The multi-part identifier &#8220;EMPP.Eno&#8221; could not be bound.<br />
Msg 4104, Level 16, State 1, Line 2<br />
The multi-part identifier &#8220;EMPP.Eno&#8221; could not be bound.<br />
Msg 4104, Level 16, State 1, Line 2<br />
The multi-part identifier &#8220;EMPP.Ename&#8221; could not be bound.</p>
<p>Plz Help me, how to avoid this Error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swadesh</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-117257</link>
		<dc:creator><![CDATA[Swadesh]]></dc:creator>
		<pubDate>Tue, 08 Feb 2011 14:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-117257</guid>
		<description><![CDATA[Hi Sir,

I am your fan,Great work !!]]></description>
		<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>I am your fan,Great work !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shah Nilay</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-110652</link>
		<dc:creator><![CDATA[Shah Nilay]]></dc:creator>
		<pubDate>Wed, 12 Jan 2011 12:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-110652</guid>
		<description><![CDATA[This is one of the best article for SQL server.
Any one can easily understand all the fundamentals of SQL server.
Thanks.




Nilay Shah]]></description>
		<content:encoded><![CDATA[<p>This is one of the best article for SQL server.<br />
Any one can easily understand all the fundamentals of SQL server.<br />
Thanks.</p>
<p>Nilay Shah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mounika</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-104289</link>
		<dc:creator><![CDATA[mounika]]></dc:creator>
		<pubDate>Wed, 08 Dec 2010 10:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-104289</guid>
		<description><![CDATA[sir please send file of sql questions including all the parts
                   thanking u sir]]></description>
		<content:encoded><![CDATA[<p>sir please send file of sql questions including all the parts<br />
                   thanking u sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shreelata sukumaran</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-102983</link>
		<dc:creator><![CDATA[shreelata sukumaran]]></dc:creator>
		<pubDate>Tue, 30 Nov 2010 06:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-102983</guid>
		<description><![CDATA[kindly give the process how to create siss  and dts in sql server 2005]]></description>
		<content:encoded><![CDATA[<p>kindly give the process how to create siss  and dts in sql server 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-86901</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Tue, 07 Sep 2010 10:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-86901</guid>
		<description><![CDATA[There are lot of sites that offer blog with no cost. One is blogspot.com]]></description>
		<content:encoded><![CDATA[<p>There are lot of sites that offer blog with no cost. One is blogspot.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-86900</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Tue, 07 Sep 2010 10:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-86900</guid>
		<description><![CDATA[It can be used to generate millions of rows
Refer this 
http://beyondrelational.com/blogs/madhivanan/archive/2007/10/10/generating-random-numbers-part-ii.aspx]]></description>
		<content:encoded><![CDATA[<p>It can be used to generate millions of rows<br />
Refer this<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/10/10/generating-random-numbers-part-ii.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/10/10/generating-random-numbers-part-ii.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarita</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-84462</link>
		<dc:creator><![CDATA[Sarita]]></dc:creator>
		<pubDate>Tue, 17 Aug 2010 21:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-84462</guid>
		<description><![CDATA[Hello Pinal:
I have a question about blogs because I want to start one.
Your help will be very much appreciated if you can please let me what I will need to do it?  Thank you]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal:<br />
I have a question about blogs because I want to start one.<br />
Your help will be very much appreciated if you can please let me what I will need to do it?  Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sudha</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-82550</link>
		<dc:creator><![CDATA[sudha]]></dc:creator>
		<pubDate>Sun, 01 Aug 2010 08:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-82550</guid>
		<description><![CDATA[option type questions of SQL server should also be there in page ,so it will be helpful to students who are learn SQL server]]></description>
		<content:encoded><![CDATA[<p>option type questions of SQL server should also be there in page ,so it will be helpful to students who are learn SQL server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – The Self Join – Inner Join and Outer Join Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-79145</link>
		<dc:creator><![CDATA[SQL SERVER – The Self Join – Inner Join and Outer Join Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 08 Jul 2010 01:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-79145</guid>
		<description><![CDATA[[...] In fact, it can be classified under any type of join. I have previously written about this in my interview questions and answers series. I have also mentioned this subject when I explained the joins in detail over SQL SERVER – [...]]]></description>
		<content:encoded><![CDATA[<p>[...] In fact, it can be classified under any type of join. I have previously written about this in my interview questions and answers series. I have also mentioned this subject when I explained the joins in detail over SQL SERVER – [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uddin</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-64698</link>
		<dc:creator><![CDATA[Uddin]]></dc:creator>
		<pubDate>Wed, 07 Apr 2010 09:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-64698</guid>
		<description><![CDATA[If we are applying selfjoin then:

create table #emp_temp
(
empid int,
subid int,
name varchar(20)
)

insert into #emp_temp
select 1,2,&#039;adam&#039;
union all
select 2,3,&#039;bob&#039;
union all
select 3,null,&#039;candy&#039;
union all
select 4,2,&#039;doug&#039;
union all
select 5,3,&#039;earl&#039;
union all
select 6,5,&#039;fran&#039;


select m.name Manager, s.name Subordinate
from #emp_temp m join #emp_temp s on s.subid=m.empid]]></description>
		<content:encoded><![CDATA[<p>If we are applying selfjoin then:</p>
<p>create table #emp_temp<br />
(<br />
empid int,<br />
subid int,<br />
name varchar(20)<br />
)</p>
<p>insert into #emp_temp<br />
select 1,2,&#8217;adam&#8217;<br />
union all<br />
select 2,3,&#8217;bob&#8217;<br />
union all<br />
select 3,null,&#8217;candy&#8217;<br />
union all<br />
select 4,2,&#8217;doug&#8217;<br />
union all<br />
select 5,3,&#8217;earl&#8217;<br />
union all<br />
select 6,5,&#8217;fran&#8217;</p>
<p>select m.name Manager, s.name Subordinate<br />
from #emp_temp m join #emp_temp s on s.subid=m.empid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions &#38; Answers Needs Your Help Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-63212</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions &#38; Answers Needs Your Help Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 01:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-63212</guid>
		<description><![CDATA[[...] SQL SERVER – 2008 – Interview Questions and Answers – Part 2 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – 2008 – Interview Questions and Answers – Part 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/#comment-60946</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=991#comment-60946</guid>
		<description><![CDATA[What exactly do you want? Just the employee names of manager and subordinate?

WITH
	Employees(empid, empname)
AS
	(
	 SELECT 1, &#039;adam&#039;	UNION ALL
	 SELECT 2, &#039;bob&#039;	UNION ALL
	 SELECT 3, &#039;candy&#039;	UNION ALL
	 SELECT 4, &#039;doug&#039;	UNION ALL
	 SELECT 5, &#039;earl&#039;	UNION ALL
	 SELECT 6, &#039;fran&#039;
	),
	Subordinates(empid, sub_empid)
AS
	(
	 SELECT 3, 2 UNION ALL
	 SELECT 3, 5 UNION ALL
	 SELECT 2, 1 UNION ALL
	 SELECT 2, 4 UNION ALL
	 SELECT 5, 6
	)
SELECT
		Emp_1.empname	Manager,
		Emp_2.empname	Subordinate
FROM
		Employees		Emp_1,
		Employees		Emp_2,
		Subordinates
WHERE
		Emp_1.empid	= Subordinates.empid 
  AND	Emp_2.empid	= Subordinates.sub_empid
ORDER BY
		Emp_1.empname;]]></description>
		<content:encoded><![CDATA[<p>What exactly do you want? Just the employee names of manager and subordinate?</p>
<p>WITH<br />
	Employees(empid, empname)<br />
AS<br />
	(<br />
	 SELECT 1, &#8216;adam&#8217;	UNION ALL<br />
	 SELECT 2, &#8216;bob&#8217;	UNION ALL<br />
	 SELECT 3, &#8216;candy&#8217;	UNION ALL<br />
	 SELECT 4, &#8216;doug&#8217;	UNION ALL<br />
	 SELECT 5, &#8216;earl&#8217;	UNION ALL<br />
	 SELECT 6, &#8216;fran&#8217;<br />
	),<br />
	Subordinates(empid, sub_empid)<br />
AS<br />
	(<br />
	 SELECT 3, 2 UNION ALL<br />
	 SELECT 3, 5 UNION ALL<br />
	 SELECT 2, 1 UNION ALL<br />
	 SELECT 2, 4 UNION ALL<br />
	 SELECT 5, 6<br />
	)<br />
SELECT<br />
		Emp_1.empname	Manager,<br />
		Emp_2.empname	Subordinate<br />
FROM<br />
		Employees		Emp_1,<br />
		Employees		Emp_2,<br />
		Subordinates<br />
WHERE<br />
		Emp_1.empid	= Subordinates.empid<br />
  AND	Emp_2.empid	= Subordinates.sub_empid<br />
ORDER BY<br />
		Emp_1.empname;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
