<?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 Complete List Download</title>
	<atom:link href="http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: k.prasad</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-459119</link>
		<dc:creator><![CDATA[k.prasad]]></dc:creator>
		<pubDate>Fri, 19 Apr 2013 03:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-459119</guid>
		<description><![CDATA[select max(col1),max(col2),col4 from a group by col4]]></description>
		<content:encoded><![CDATA[<p>select max(col1),max(col2),col4 from a group by col4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narayan</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-416426</link>
		<dc:creator><![CDATA[Narayan]]></dc:creator>
		<pubDate>Fri, 01 Feb 2013 20:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-416426</guid>
		<description><![CDATA[Where do I download the questions and answers? When I click the link it just open up new window for ever.]]></description>
		<content:encoded><![CDATA[<p>Where do I download the questions and answers? When I click the link it just open up new window for ever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lalit Paymode</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-366369</link>
		<dc:creator><![CDATA[Lalit Paymode]]></dc:creator>
		<pubDate>Tue, 30 Oct 2012 03:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-366369</guid>
		<description><![CDATA[hey,can u tell me that,we are using oldb namespace in case oracle connectivity,and this also possible in case of sql2008 also,so what is needs to implement using.system,data,sqlclient]]></description>
		<content:encoded><![CDATA[<p>hey,can u tell me that,we are using oldb namespace in case oracle connectivity,and this also possible in case of sql2008 also,so what is needs to implement using.system,data,sqlclient</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abir</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-358267</link>
		<dc:creator><![CDATA[Abir]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 10:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-358267</guid>
		<description><![CDATA[What special Oracle feature allows you to specify how the cost based system treats a SQL statement]]></description>
		<content:encoded><![CDATA[<p>What special Oracle feature allows you to specify how the cost based system treats a SQL statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garima</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-353694</link>
		<dc:creator><![CDATA[garima]]></dc:creator>
		<pubDate>Thu, 27 Sep 2012 21:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-353694</guid>
		<description><![CDATA[is there a way i can print  this book.]]></description>
		<content:encoded><![CDATA[<p>is there a way i can print  this book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopinath V</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-309046</link>
		<dc:creator><![CDATA[Gopinath V]]></dc:creator>
		<pubDate>Wed, 04 Jul 2012 02:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-309046</guid>
		<description><![CDATA[very thanks man,]]></description>
		<content:encoded><![CDATA[<p>very thanks man,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanaullah Khan</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-280267</link>
		<dc:creator><![CDATA[Sanaullah Khan]]></dc:creator>
		<pubDate>Sat, 28 Apr 2012 07:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-280267</guid>
		<description><![CDATA[hello sir ,
 i have this problem while attaching the northwind test  database .as show 
sir how i can slow this :
thank you
Regards sanaullah 

TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server &#039;HP-PC\SQLEXPRESS&#039;.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=10.50.1447.4+((KJ_RTM).100213-0103+)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Attach+database+Server&amp;LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Unable to open the physical file &quot;C:\SQL Server 2000 Sample Databases\northwnd.mdf&quot;. Operating system error 5: &quot;5(Access is denied.)&quot;. (Microsoft SQL Server, Error: 5120)]]></description>
		<content:encoded><![CDATA[<p>hello sir ,<br />
 i have this problem while attaching the northwind test  database .as show<br />
sir how i can slow this :<br />
thank you<br />
Regards sanaullah </p>
<p>TITLE: Microsoft SQL Server Management Studio<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Attach database failed for Server &#8216;HP-PC\SQLEXPRESS&#8217;.  (Microsoft.SqlServer.Smo)</p>
<p>For help, click: <a href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#038;ProdVer=10.50.1447.4+((KJ_RTM)" rel="nofollow">http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#038;ProdVer=10.50.1447.4+((KJ_RTM)</a>.100213-0103+)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Attach+database+Server&amp;LinkId=20476</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
ADDITIONAL INFORMATION:</p>
<p>An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Unable to open the physical file &#8220;C:\SQL Server 2000 Sample Databases\northwnd.mdf&#8221;. Operating system error 5: &#8220;5(Access is denied.)&#8221;. (Microsoft SQL Server, Error: 5120)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manoj</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-280182</link>
		<dc:creator><![CDATA[manoj]]></dc:creator>
		<pubDate>Fri, 27 Apr 2012 22:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-280182</guid>
		<description><![CDATA[It is ggod to have and prepare . Thank you in advance.]]></description>
		<content:encoded><![CDATA[<p>It is ggod to have and prepare . Thank you in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manoush</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-278385</link>
		<dc:creator><![CDATA[manoush]]></dc:creator>
		<pubDate>Sun, 22 Apr 2012 10:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-278385</guid>
		<description><![CDATA[how to Create a procedure or method followed by the ID of the user with a statement of income and output and how to call to find out what product profits after a specific date]]></description>
		<content:encoded><![CDATA[<p>how to Create a procedure or method followed by the ID of the user with a statement of income and output and how to call to find out what product profits after a specific date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhay Dubey</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-277481</link>
		<dc:creator><![CDATA[Abhay Dubey]]></dc:creator>
		<pubDate>Thu, 19 Apr 2012 06:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-277481</guid>
		<description><![CDATA[sir plz solve my problem by query ,i.e. we need a query which select data from 2 tables -
1- male(table1)
2-female(table2)
we need to get data which give alternative male and females value on by one.
plz reply me.]]></description>
		<content:encoded><![CDATA[<p>sir plz solve my problem by query ,i.e. we need a query which select data from 2 tables -<br />
1- male(table1)<br />
2-female(table2)<br />
we need to get data which give alternative male and females value on by one.<br />
plz reply me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-276626</link>
		<dc:creator><![CDATA[Ravi]]></dc:creator>
		<pubDate>Mon, 16 Apr 2012 11:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-276626</guid>
		<description><![CDATA[SELECT COUNT(SC.name) AS [Num of Columns]
FROM sys.objects SO
	 INNER JOIN sys.columns SC ON SC.object_id=SO.object_id
WHERE type = &#039;U&#039; AND SO.name = &#039;Your Table_Name&#039;]]></description>
		<content:encoded><![CDATA[<p>SELECT COUNT(SC.name) AS [Num of Columns]<br />
FROM sys.objects SO<br />
	 INNER JOIN sys.columns SC ON SC.object_id=SO.object_id<br />
WHERE type = &#8216;U&#8217; AND SO.name = &#8216;Your Table_Name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arshit verma</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-267574</link>
		<dc:creator><![CDATA[Arshit verma]]></dc:creator>
		<pubDate>Sun, 25 Mar 2012 21:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-267574</guid>
		<description><![CDATA[sir,
       please tell me how to  count the number of column in a table?]]></description>
		<content:encoded><![CDATA[<p>sir,<br />
       please tell me how to  count the number of column in a table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: parimal kumar jha</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-264769</link>
		<dc:creator><![CDATA[parimal kumar jha]]></dc:creator>
		<pubDate>Mon, 19 Mar 2012 04:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-264769</guid>
		<description><![CDATA[sir, 
          please tell me what are the main differences between ms access and sqlserver . when to use both different application?]]></description>
		<content:encoded><![CDATA[<p>sir,<br />
          please tell me what are the main differences between ms access and sqlserver . when to use both different application?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donny</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-255776</link>
		<dc:creator><![CDATA[Donny]]></dc:creator>
		<pubDate>Thu, 23 Feb 2012 14:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-255776</guid>
		<description><![CDATA[Hi Pinal,

I&#039;m having a very hard time in findig a way to enter my @FromDate and @ToDate into my procedure...can you please help and show me where do i need to enter these. Thank you so much in advance 




CREATE Procedure    dbo.UHS_Rapidresponsedoc_RS_PR    
(@JobId int     
)      
as       
 Begin       
 Set NoCount on       
 Declare @FromDate DATETIME                            
 Declare @ToDate DATETIME                       
 Declare @SubmittedReportGUID HVCIDdt                          
 DECLARE @InputParamTable  TABLE                                      
  (                                      
     InternalValueGUID VARCHAR(30),                              
     ValueFrom VARCHAR(255),                                          
     Name VARCHAR(30)                       
                    
  )                                
                            
 SET @SubmittedReportGUID = (SELECT                               
                                    SubmittedReportGUID                               
                             FROM HVCRequestedReport                               
                             WHERE JobID = @JobId)                                    
 INSERT INTO @InputParamTable                                  
     SELECT  InternalValueGUID,                               
                ValueFrom,                               
                Name                                     
        FROM HVCSubmittedParameter                                      
        WHERE SubmittedReportGUID = @SubmittedReportGUID                               
                              
--Select * from   @InputParamTable                              
                              
  -- Get the Report Date Intervals                        
SELECT @FromDate =                        
 CASE                         
    WHEN LEFT(RP.ValueFrom,1) = &#039;t&#039; AND LEN(RP.ValueFrom) = 1 THEN                        
  CONVERT(varchar(11), GetDate())                       
    WHEN LEFT(RP.ValueFrom,1) = &#039;t&#039; AND PATINDEX(&#039;%+%&#039;,RP.ValueFrom)  0 THEN                        
                DATEAdd(dd,convert(numeric,LTRIM(RIGHT(RP.ValueFrom,LEN(RP.ValueFrom)-PATINDEX(&#039;%+%&#039;,RP.ValueFrom)))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))                       
    WHEN LEFT(RP.ValueFrom,1) = &#039;t&#039; AND PATINDEX(&#039;%-%&#039;,RP.ValueFrom) 0 THEN                        
  DateAdd(dd,-convert(numeric,(LTRIM(RIGHT(RP.ValueFrom, LEN(RP.ValueFrom)-PATINDEX(&#039;%-%&#039;,RP.ValueFrom))))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))                       
    ELSE CONVERT(datetime,RP.ValueFrom)                     
        END                         
from      @InputParamTable RP                        
where    RP.Name = &#039;HVCFromDate&#039;                      
                       
SET @FromDate = CAST((SELECT @FromDate                        
                           ) + &#039; &#039; + (SELECT                         
                                                              ISNULL(ValueFROM, &#039;00:00&#039;)                        
                                                          FROM @InputParamTable                         
                                                          WHERE Name = &#039;HVCFROMTime&#039;) AS DATETIME) 
                                                          
SELECT @ToDate  =                        
 CASE                         
    WHEN LEFT(RP.ValueFrom,1) = &#039;t&#039; AND LEN(RP.ValueFrom) = 1 THEN                         
  CONVERT(varchar(11), GetDate())                        
       WHEN LEFT(RP.ValueFrom,1) = &#039;t&#039; AND PATINDEX(&#039;%+%&#039;,RP.ValueFrom)  0 THEN                         
                DateAdd(dd,convert(numeric,LTRIM(RIGHT(RP.ValueFrom,LEN(RP.ValueFrom)-PATINDEX(&#039;%+%&#039;,RP.ValueFrom)))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))                       
    WHEN LEFT(RP.ValueFrom,1) = &#039;t&#039; AND PATINDEX(&#039;%-%&#039;,RP.ValueFrom) 0 THEN                         
  DateAdd(dd,-convert(numeric,(LTRIM(RIGHT(RP.ValueFrom, LEN(RP.ValueFrom)-PATINDEX(&#039;%-%&#039;,RP.ValueFrom))))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))                      
    ELSE  CONVERT(datetime,RP.ValueFrom)                       
     
        END                         
from      @InputParamTable RP                        
where    RP.Name = &#039;HVCToDate&#039;                               
                    
                        
     SET @ToDate = CAST((SELECT @ToDate                                            
                     ) + &#039; &#039; + (SELECT                         
   ValueFROM                         
                                                      FROM @InputParamTable                         
                   WHERE Name = &#039;HVCToTime&#039;) AS DATETIME)
                   
                   
 select cv.providerdisplayname            
 ,u.displayname as authoredprovider            
 ,cv.clientdisplayname            
 ,cv.idcode          
 ,cv.visitidcode            
 ,cd.createdwhen            
 ,cd.documentname   
 ,cd.AuthoredDtm  
 ,cd.ArrivalDtm 
 ,cp.DisplayName        

from cv3clientdocument cd            
inner join cv3clientvisit cv            
  on cd.clientvisitguid = cv.guid     
inner join cv3user u  
 on cd.authoredproviderguid = u.guid           
inner join cv3careprovider cp            
  on cv.providerdisplayname = cp.displayname         
            
where  cd.documentname not like  &#039;%Phone%&#039;    
and cv.clientdisplayname not like &#039;TEST%&#039;     
and cd.documentname like &#039;%Rapid%&#039;
and dateadd(dd, datediff(dd, 0, cd.ArrivalDtm ), 0) &lt;= dateadd(dd, datediff(dd, 0, GETDATE()), 0)
and cd.ArrivalDtm between @FromDate and @ToDate 
                                       
order by providerdisplayname,u.displayname,clientdisplayname       
                     
Set NoCount off    
end]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I&#8217;m having a very hard time in findig a way to enter my @FromDate and @ToDate into my procedure&#8230;can you please help and show me where do i need to enter these. Thank you so much in advance </p>
<p>CREATE Procedure    dbo.UHS_Rapidresponsedoc_RS_PR<br />
(@JobId int<br />
)<br />
as<br />
 Begin<br />
 Set NoCount on<br />
 Declare @FromDate DATETIME<br />
 Declare @ToDate DATETIME<br />
 Declare @SubmittedReportGUID HVCIDdt<br />
 DECLARE @InputParamTable  TABLE<br />
  (<br />
     InternalValueGUID VARCHAR(30),<br />
     ValueFrom VARCHAR(255),<br />
     Name VARCHAR(30)                       </p>
<p>  )                                </p>
<p> SET @SubmittedReportGUID = (SELECT<br />
                                    SubmittedReportGUID<br />
                             FROM HVCRequestedReport<br />
                             WHERE JobID = @JobId)<br />
 INSERT INTO @InputParamTable<br />
     SELECT  InternalValueGUID,<br />
                ValueFrom,<br />
                Name<br />
        FROM HVCSubmittedParameter<br />
        WHERE SubmittedReportGUID = @SubmittedReportGUID                               </p>
<p>&#8211;Select * from   @InputParamTable                              </p>
<p>  &#8212; Get the Report Date Intervals<br />
SELECT @FromDate =<br />
 CASE<br />
    WHEN LEFT(RP.ValueFrom,1) = &#8216;t&#8217; AND LEN(RP.ValueFrom) = 1 THEN<br />
  CONVERT(varchar(11), GetDate())<br />
    WHEN LEFT(RP.ValueFrom,1) = &#8216;t&#8217; AND PATINDEX(&#8216;%+%&#8217;,RP.ValueFrom)  0 THEN<br />
                DATEAdd(dd,convert(numeric,LTRIM(RIGHT(RP.ValueFrom,LEN(RP.ValueFrom)-PATINDEX(&#8216;%+%&#8217;,RP.ValueFrom)))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))<br />
    WHEN LEFT(RP.ValueFrom,1) = &#8216;t&#8217; AND PATINDEX(&#8216;%-%&#8217;,RP.ValueFrom) 0 THEN<br />
  DateAdd(dd,-convert(numeric,(LTRIM(RIGHT(RP.ValueFrom, LEN(RP.ValueFrom)-PATINDEX(&#8216;%-%&#8217;,RP.ValueFrom))))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))<br />
    ELSE CONVERT(datetime,RP.ValueFrom)<br />
        END<br />
from      @InputParamTable RP<br />
where    RP.Name = &#8216;HVCFromDate&#8217;                      </p>
<p>SET @FromDate = CAST((SELECT @FromDate<br />
                           ) + &#8216; &#8216; + (SELECT<br />
                                                              ISNULL(ValueFROM, &#8217;00:00&#8242;)<br />
                                                          FROM @InputParamTable<br />
                                                          WHERE Name = &#8216;HVCFROMTime&#8217;) AS DATETIME) </p>
<p>SELECT @ToDate  =<br />
 CASE<br />
    WHEN LEFT(RP.ValueFrom,1) = &#8216;t&#8217; AND LEN(RP.ValueFrom) = 1 THEN<br />
  CONVERT(varchar(11), GetDate())<br />
       WHEN LEFT(RP.ValueFrom,1) = &#8216;t&#8217; AND PATINDEX(&#8216;%+%&#8217;,RP.ValueFrom)  0 THEN<br />
                DateAdd(dd,convert(numeric,LTRIM(RIGHT(RP.ValueFrom,LEN(RP.ValueFrom)-PATINDEX(&#8216;%+%&#8217;,RP.ValueFrom)))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))<br />
    WHEN LEFT(RP.ValueFrom,1) = &#8216;t&#8217; AND PATINDEX(&#8216;%-%&#8217;,RP.ValueFrom) 0 THEN<br />
  DateAdd(dd,-convert(numeric,(LTRIM(RIGHT(RP.ValueFrom, LEN(RP.ValueFrom)-PATINDEX(&#8216;%-%&#8217;,RP.ValueFrom))))),CONVERT(datetime,CONVERT(varchar(11),GetDate())))<br />
    ELSE  CONVERT(datetime,RP.ValueFrom)                       </p>
<p>        END<br />
from      @InputParamTable RP<br />
where    RP.Name = &#8216;HVCToDate&#8217;                               </p>
<p>     SET @ToDate = CAST((SELECT @ToDate<br />
                     ) + &#8216; &#8216; + (SELECT<br />
   ValueFROM<br />
                                                      FROM @InputParamTable<br />
                   WHERE Name = &#8216;HVCToTime&#8217;) AS DATETIME)</p>
<p> select cv.providerdisplayname<br />
 ,u.displayname as authoredprovider<br />
 ,cv.clientdisplayname<br />
 ,cv.idcode<br />
 ,cv.visitidcode<br />
 ,cd.createdwhen<br />
 ,cd.documentname<br />
 ,cd.AuthoredDtm<br />
 ,cd.ArrivalDtm<br />
 ,cp.DisplayName        </p>
<p>from cv3clientdocument cd<br />
inner join cv3clientvisit cv<br />
  on cd.clientvisitguid = cv.guid<br />
inner join cv3user u<br />
 on cd.authoredproviderguid = u.guid<br />
inner join cv3careprovider cp<br />
  on cv.providerdisplayname = cp.displayname         </p>
<p>where  cd.documentname not like  &#8216;%Phone%&#8217;<br />
and cv.clientdisplayname not like &#8216;TEST%&#8217;<br />
and cd.documentname like &#8216;%Rapid%&#8217;<br />
and dateadd(dd, datediff(dd, 0, cd.ArrivalDtm ), 0) &lt;= dateadd(dd, datediff(dd, 0, GETDATE()), 0)<br />
and cd.ArrivalDtm between @FromDate and @ToDate </p>
<p>order by providerdisplayname,u.displayname,clientdisplayname       </p>
<p>Set NoCount off<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajesh</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-246128</link>
		<dc:creator><![CDATA[rajesh]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-246128</guid>
		<description><![CDATA[why we use indexes in sql server 2008. please let me know in detail.]]></description>
		<content:encoded><![CDATA[<p>why we use indexes in sql server 2008. please let me know in detail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-245924</link>
		<dc:creator><![CDATA[sam]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 03:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-245924</guid>
		<description><![CDATA[Hi pinal, 

This is good for fresh people who just learn sql server and want to job as developer. 
But pinal , I am looking for some technical interview question with answer and some technical example as well.
Because in some job people take interview with situation , action and result.
I am looking that kind of interview question and answer.]]></description>
		<content:encoded><![CDATA[<p>Hi pinal, </p>
<p>This is good for fresh people who just learn sql server and want to job as developer.<br />
But pinal , I am looking for some technical interview question with answer and some technical example as well.<br />
Because in some job people take interview with situation , action and result.<br />
I am looking that kind of interview question and answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nimmi.K.S</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-243818</link>
		<dc:creator><![CDATA[Nimmi.K.S]]></dc:creator>
		<pubDate>Thu, 26 Jan 2012 04:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-243818</guid>
		<description><![CDATA[Is it possible to add an application develped in VB.net &amp; SQLServer2008  to system startup..???]]></description>
		<content:encoded><![CDATA[<p>Is it possible to add an application develped in VB.net &amp; SQLServer2008  to system startup..???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-178006</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 12 Oct 2011 15:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-178006</guid>
		<description><![CDATA[See if the SQL Server agent is running. Also check if the password got changed for the account that runs a job]]></description>
		<content:encoded><![CDATA[<p>See if the SQL Server agent is running. Also check if the password got changed for the account that runs a job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farooque Ali</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-177506</link>
		<dc:creator><![CDATA[Farooque Ali]]></dc:creator>
		<pubDate>Tue, 11 Oct 2011 11:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-177506</guid>
		<description><![CDATA[Hi,

I am using SQL SERVER 2008 R2. In that i was created the job for taking the back up. It was working from the day of it is created. But from the last week it was not executed and also it shows error&quot; Execution Failed.,See the Maintanence Plan and SQL Server Agent Job History logs for details&quot;

Please let me know why it happens? What is the solution to resolve this?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using SQL SERVER 2008 R2. In that i was created the job for taking the back up. It was working from the day of it is created. But from the last week it was not executed and also it shows error&#8221; Execution Failed.,See the Maintanence Plan and SQL Server Agent Job History logs for details&#8221;</p>
<p>Please let me know why it happens? What is the solution to resolve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanjay</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-174850</link>
		<dc:creator><![CDATA[sanjay]]></dc:creator>
		<pubDate>Tue, 04 Oct 2011 05:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-174850</guid>
		<description><![CDATA[Hi
 After creating the cdc (table_CT) table that is genrated in system table cant Be Modified Means It Dosnt have Design option in sql server 2008 
Can Anybody Give Me Solution For This]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
 After creating the cdc (table_CT) table that is genrated in system table cant Be Modified Means It Dosnt have Design option in sql server 2008<br />
Can Anybody Give Me Solution For This</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanjay</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-173184</link>
		<dc:creator><![CDATA[sanjay]]></dc:creator>
		<pubDate>Thu, 29 Sep 2011 11:22:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-173184</guid>
		<description><![CDATA[Hi,

In Change Data Capture What is Diffrence Between $start_lsn And $eqval]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>In Change Data Capture What is Diffrence Between $start_lsn And $eqval</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Chambers</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-172065</link>
		<dc:creator><![CDATA[Colin Chambers]]></dc:creator>
		<pubDate>Mon, 26 Sep 2011 10:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-172065</guid>
		<description><![CDATA[Pinal you are king of SQL and SQL server!

amazing website, thanks for sharing your knowledge with us

cheers

C]]></description>
		<content:encoded><![CDATA[<p>Pinal you are king of SQL and SQL server!</p>
<p>amazing website, thanks for sharing your knowledge with us</p>
<p>cheers</p>
<p>C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joetig</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-170959</link>
		<dc:creator><![CDATA[joetig]]></dc:creator>
		<pubDate>Fri, 23 Sep 2011 16:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-170959</guid>
		<description><![CDATA[Great work, good basic set of questions. It is great that I can download them. I can see preventing the changing of the document, but preventing the printing is a little overboard. if I can download, why cant I print?
 I use your questions a a reference point to what topics I really want to touch on during an interview. I do not always have a computer nearby.]]></description>
		<content:encoded><![CDATA[<p>Great work, good basic set of questions. It is great that I can download them. I can see preventing the changing of the document, but preventing the printing is a little overboard. if I can download, why cant I print?<br />
 I use your questions a a reference point to what topics I really want to touch on during an interview. I do not always have a computer nearby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kartik</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-159544</link>
		<dc:creator><![CDATA[Kartik]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 15:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-159544</guid>
		<description><![CDATA[hi., some one plz suggest me a project on Oracle 10g  (for B.tech final year project)]]></description>
		<content:encoded><![CDATA[<p>hi., some one plz suggest me a project on Oracle 10g  (for B.tech final year project)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhi</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comment-159520</link>
		<dc:creator><![CDATA[abhi]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 13:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134#comment-159520</guid>
		<description><![CDATA[sir, 
What is difrrences in sql server backup and windows backup.]]></description>
		<content:encoded><![CDATA[<p>sir,<br />
What is difrrences in sql server backup and windows backup.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
