<?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/"
		>
<channel>
	<title>Comments on: Top 10 SQL Server DBA Interview Questions</title>
	<atom:link href="http://www.brentozar.com/archive/2009/01/top-10-interview-questions-to-ask-senior-dbas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brentozar.com/archive/2009/01/top-10-interview-questions-to-ask-senior-dbas/</link>
	<description>Your technology pain-relief experts.</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:37:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kevin</title>
		<link>http://www.brentozar.com/archive/2009/01/top-10-interview-questions-to-ask-senior-dbas/comment-page-2/#comment-36420</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 17 Jan 2012 16:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=2261#comment-36420</guid>
		<description>Just to be different. I&#039;ve already got a tally table of sequential ints set up. So...

CREATE FUNCTION [dbo].[ufnGetFizzBuzz]
(
	@Number int
)  
returns nvarchar(50) as  
begin 
	declare @retStr varchar(50) = NULL
	
	if @Number % 3 = 0 
		set @retStr = N&#039;Fizz&#039;
	
	if @Number % 5 = 0 
		set @retStr = N&#039;Buzz&#039;
	
	if @Number % 3 = 0 and @Number % 5 = 0 
		set @retStr = N&#039;FizzBuzz&#039;
	
	if @retStr = null
		set @retStr = cast(@Number as nvarchar(50))
	
	return @retStr
END
GO

select dbo.ufnGetFizzBuzz(number)
from WorkDB..TallyTable
where number &lt;= 100</description>
		<content:encoded><![CDATA[<p>Just to be different. I&#8217;ve already got a tally table of sequential ints set up. So&#8230;</p>
<p>CREATE FUNCTION [dbo].[ufnGetFizzBuzz]<br />
(<br />
	@Number int<br />
)<br />
returns nvarchar(50) as<br />
begin<br />
	declare @retStr varchar(50) = NULL</p>
<p>	if @Number % 3 = 0<br />
		set @retStr = N&#8217;Fizz&#8217;</p>
<p>	if @Number % 5 = 0<br />
		set @retStr = N&#8217;Buzz&#8217;</p>
<p>	if @Number % 3 = 0 and @Number % 5 = 0<br />
		set @retStr = N&#8217;FizzBuzz&#8217;</p>
<p>	if @retStr = null<br />
		set @retStr = cast(@Number as nvarchar(50))</p>
<p>	return @retStr<br />
END<br />
GO</p>
<p>select dbo.ufnGetFizzBuzz(number)<br />
from WorkDB..TallyTable<br />
where number &lt;= 100</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix</title>
		<link>http://www.brentozar.com/archive/2009/01/top-10-interview-questions-to-ask-senior-dbas/comment-page-2/#comment-34973</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Thu, 15 Dec 2011 19:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=2261#comment-34973</guid>
		<description>Great intuitive information.  Keep them coming Brent.  I&#039;m a person that is getting my feet wet on SQL Server and looking to get certified and then move up to Oracle.  I think this site will definitely help me.  Thanks again</description>
		<content:encoded><![CDATA[<p>Great intuitive information.  Keep them coming Brent.  I&#8217;m a person that is getting my feet wet on SQL Server and looking to get certified and then move up to Oracle.  I think this site will definitely help me.  Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tony</title>
		<link>http://www.brentozar.com/archive/2009/01/top-10-interview-questions-to-ask-senior-dbas/comment-page-2/#comment-34817</link>
		<dc:creator>tony</dc:creator>
		<pubDate>Sun, 11 Dec 2011 06:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=2261#comment-34817</guid>
		<description>declare i,a,b,y  as integer
set i=1

while i &lt;= 100

 begin
  if(i%3)=0 then a =1
   else a=0
  end if
  if(i%5)=0 then b =2
   else b=0
  end 
  y=a+b
  case y
    y=0 print (i)
    y=1 print (&quot;Fizz&quot;)
    y=2 print (&quot;Buzz&quot;)
    y=3 print (&quot;FizzBuzz&quot;)
  end case
 end 
i=i+1
loop
end</description>
		<content:encoded><![CDATA[<p>declare i,a,b,y  as integer<br />
set i=1</p>
<p>while i &lt;= 100</p>
<p> begin<br />
  if(i%3)=0 then a =1<br />
   else a=0<br />
  end if<br />
  if(i%5)=0 then b =2<br />
   else b=0<br />
  end<br />
  y=a+b<br />
  case y<br />
    y=0 print (i)<br />
    y=1 print (&quot;Fizz&quot;)<br />
    y=2 print (&quot;Buzz&quot;)<br />
    y=3 print (&quot;FizzBuzz&quot;)<br />
  end case<br />
 end<br />
i=i+1<br />
loop<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zambonilli</title>
		<link>http://www.brentozar.com/archive/2009/01/top-10-interview-questions-to-ask-senior-dbas/comment-page-2/#comment-34662</link>
		<dc:creator>Zambonilli</dc:creator>
		<pubDate>Tue, 06 Dec 2011 18:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=2261#comment-34662</guid>
		<description>If you want to get a feel for his or her&#039;s query optimization skills I&#039;ve found asking what a bookmark lookup seems to be a good one that trips a lot of people up.</description>
		<content:encoded><![CDATA[<p>If you want to get a feel for his or her&#8217;s query optimization skills I&#8217;ve found asking what a bookmark lookup seems to be a good one that trips a lot of people up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 536/540 objects using disk: basic

Served from: www.brentozar.com @ 2012-02-09 06:49:46 -->
