<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Paul Nielsen</title><link>http://sqlblog.com/blogs/paul_nielsen/default.aspx</link><description>www.SQLServerBible.com</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SSMS + Vista Speech Recognition</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx</link><pubDate>Thu, 09 Oct 2008 02:52:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9369</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>5</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/9369.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=9369</wfw:commentRss><description>Ever wonder if Management Studio can be controlled by speech alone? Watch this &lt;A class="" title="Speach Recognition ScreenCast" href="http://www.screencast.com/t/mNMTY7h6"&gt;ScreenCast&lt;/A&gt; (1:47)
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=SSMS + Vista Speech Recognition&amp;amp;body=Seen on SQLblog.com: %0A%0A%09SSMS + Vista Speech Recognition%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx" target="_blank" title = "Email SSMS + Vista Speech Recognition"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx&amp;amp;title=SSMS+%2b+Vista+Speech+Recognition" target="_blank" title = "Submit SSMS + Vista Speech Recognition to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx&amp;amp;phase=2" target="_blank" title = "Submit SSMS + Vista Speech Recognition to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx&amp;amp;title=SSMS+%2b+Vista+Speech+Recognition" target="_blank" title = "Submit SSMS + Vista Speech Recognition to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx&amp;amp;title=SSMS+%2b+Vista+Speech+Recognition" target="_blank" title = "Submit SSMS + Vista Speech Recognition to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/08/ssms-vista-speach-recognition.aspx&amp;amp;title=SSMS+%2b+Vista+Speech+Recognition&amp;amp;;top=1" target="_blank" title = "Add SSMS + Vista Speech Recognition to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9369" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/SSMS/default.aspx">SSMS</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/ADA/default.aspx">ADA</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Speech+Recognition/default.aspx">Speech Recognition</category></item><item><title>Cringely says databases are dead</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx</link><pubDate>Fri, 03 Oct 2008 22:57:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9237</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/9237.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=9237</wfw:commentRss><description>&lt;P&gt;pingback to Brent Ozar's blog post about Robert X. Cringely's&amp;nbsp;(columnist for PBS) prediction that Oracle's and SQL Server's days are numbered. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.brentozar.com/archive/2008/10/cringely-says-databases-are-dead/#comment-5871"&gt;http://www.brentozar.com/archive/2008/10/cringely-says-databases-are-dead/#comment-5871&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Cringely says databases are dead&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Cringely says databases are dead%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx" target="_blank" title = "Email Cringely says databases are dead"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx&amp;amp;title=Cringely+says+databases+are+dead" target="_blank" title = "Submit Cringely says databases are dead to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx&amp;amp;phase=2" target="_blank" title = "Submit Cringely says databases are dead to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx&amp;amp;title=Cringely+says+databases+are+dead" target="_blank" title = "Submit Cringely says databases are dead to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx&amp;amp;title=Cringely+says+databases+are+dead" target="_blank" title = "Submit Cringely says databases are dead to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/cringely-says-databases-are-dead.aspx&amp;amp;title=Cringely+says+databases+are+dead&amp;amp;;top=1" target="_blank" title = "Add Cringely says databases are dead to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9237" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/cloud/default.aspx">cloud</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Cringely/default.aspx">Cringely</category></item><item><title>Recursive CTEs in AdventureWorks 2008</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx</link><pubDate>Fri, 03 Oct 2008 22:09:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9236</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/9236.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=9236</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=verdana,geneva&gt;The advent of HierarchyID removed the adjaceny pairs pattern (MangerID) from the employee table in AdventureWorks 2008. The recursive CTE example in BOL still uses the old AdventureWorks structure, so the code won't run in AdventureWorks 2008. I know that recursive CTE's are yesterday's news, but they're still useful as far as I'm concerned. So, if you want to learn about them and play with them in AdventureWorks 2008, here's some code to make&amp;nbsp;your life easier...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=verdana,geneva&gt;(note: The new AdventureWorks 2008 does not include the adjacency pairs ManagerID column, the contacts table is changed to Person table, and the ContactID is changed to BusinessEntityID.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;-- Recreate Adjacency Pairs Pattern&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;ALTER&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt; &lt;SPAN style="COLOR:blue;"&gt;TABLE&lt;/SPAN&gt; HumanResources&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;Employee&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;Add&lt;/SPAN&gt; ManagerID &lt;SPAN style="COLOR:blue;"&gt;INT&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:gray;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;go&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;-- Populate the new ManagerID Column using join condition to match&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;UPDATE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt; E&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;SET&lt;/SPAN&gt; ManagerID &lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt; M&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;BusinessEntityID&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&lt;/SPAN&gt; HumanResources&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;Employee E&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;JOIN&lt;/SPAN&gt; HumanResources&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;Employee M&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&lt;/SPAN&gt; M&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;OrganizationNode &lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt; E&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;OrganizationNode&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;GetAncestor&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;1&lt;SPAN style="COLOR:gray;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:9pt;mso-bidi-font-size:12.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:9pt;mso-bidi-font-size:12.0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:9pt;mso-bidi-font-size:12.0pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:9pt;mso-bidi-font-size:12.0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman"&gt;&amp;nbsp;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;-- This query demos the recursive CTE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:9pt;mso-bidi-font-size:12.0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:9pt;mso-bidi-font-size:12.0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="FONT-SIZE:11pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-fareast-font-family:'Times New Roman';"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;WITH&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;FONT color=#000000&gt; OrgPath&lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; ManagerID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; lv&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;AS &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:green;"&gt;-- Anchor&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;SELECT&lt;/SPAN&gt;&lt;FONT color=#000000&gt; BusinessEntityID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; ManagerID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&lt;/SPAN&gt;&lt;FONT color=#000000&gt; HumanResources&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;Employee &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;WHERE&lt;/SPAN&gt;&lt;FONT color=#000000&gt; ManagerID &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;IS&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;NULL&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:green;"&gt;-- should only be EmployeeID 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:green;"&gt;-- WHERE EmployeeID = 1 -- the CEO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:green;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:green;"&gt;-- Recursive Call&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;UNION&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;ALL&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;SELECT&lt;/SPAN&gt;&lt;FONT color=#000000&gt; E&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; E&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;ManagerID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; lv &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;+&lt;/SPAN&gt;&lt;FONT color=#000000&gt; 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&lt;/SPAN&gt;&lt;FONT color=#000000&gt; HumanResources&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;Employee E&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;JOIN&lt;/SPAN&gt;&lt;FONT color=#000000&gt; OrgPath&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&lt;/SPAN&gt;&lt;FONT color=#000000&gt; E&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;ManagerID &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt;&lt;FONT color=#000000&gt; OrgPath&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;FONT color=#000000&gt; Emp&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Emp&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;JobTitle&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;C&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;FirstName &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;+&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:red;"&gt;' '&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;+&lt;/SPAN&gt;&lt;FONT color=#000000&gt; C&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;LastName &lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt;AS&lt;/SPAN&gt;&lt;FONT color=#000000&gt; [Name]&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;M&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;FirstName &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;+&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:red;"&gt;' '&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;+&lt;/SPAN&gt;&lt;FONT color=#000000&gt; M&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;LastName &lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt;AS&lt;/SPAN&gt;&lt;FONT color=#000000&gt; [Manager]&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Lv&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&lt;/SPAN&gt;&lt;FONT color=#000000&gt; HumanResources&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;Employee Emp&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;JOIN&lt;/SPAN&gt;&lt;FONT color=#000000&gt; OrgPath&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Emp&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt;&lt;FONT color=#000000&gt; OrgPath&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;JOIN&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Person&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;Person &lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt;AS&lt;/SPAN&gt;&lt;FONT color=#000000&gt; C&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&lt;/SPAN&gt;&lt;FONT color=#000000&gt; C&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Emp&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;Left&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;Join&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Person&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;Person &lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt;AS&lt;/SPAN&gt;&lt;FONT color=#000000&gt; M&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Emp&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;ManagerID &lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt;&lt;FONT color=#000000&gt; M&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;&lt;FONT color=#000000&gt;BusinessEntityID &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;mso-bidi-font-size:16.0pt;mso-no-proof:yes;mso-bidi-font-family:'Times New Roman';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&lt;FONT color=#000000&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ORDER&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt;BY&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Lv&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:7pt;mso-bidi-font-size:11.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Recursive CTEs in AdventureWorks 2008&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Recursive CTEs in AdventureWorks 2008%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx" target="_blank" title = "Email Recursive CTEs in AdventureWorks 2008"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx&amp;amp;title=Recursive+CTEs+in+AdventureWorks+2008" target="_blank" title = "Submit Recursive CTEs in AdventureWorks 2008 to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx&amp;amp;phase=2" target="_blank" title = "Submit Recursive CTEs in AdventureWorks 2008 to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx&amp;amp;title=Recursive+CTEs+in+AdventureWorks+2008" target="_blank" title = "Submit Recursive CTEs in AdventureWorks 2008 to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx&amp;amp;title=Recursive+CTEs+in+AdventureWorks+2008" target="_blank" title = "Submit Recursive CTEs in AdventureWorks 2008 to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/recursive-ctes-in-adventureworks-2008.aspx&amp;amp;title=Recursive+CTEs+in+AdventureWorks+2008&amp;amp;;top=1" target="_blank" title = "Add Recursive CTEs in AdventureWorks 2008 to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9236" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/AdventureWorks+2008/default.aspx">AdventureWorks 2008</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Recursive+CTE/default.aspx">Recursive CTE</category></item><item><title>Denormalize for Performance? </title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx</link><pubDate>Fri, 03 Oct 2008 12:00:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9209</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>19</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/9209.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=9209</wfw:commentRss><description>&lt;DIV align=left&gt;Conventional wisdom says to “normalize to 3rd normal form then denormalize for performance.” Poppycock! I say for an OLTP operational database (not a reporting or BI database), a well normalized design will outperform a denormalized design for three good reasons:&lt;/DIV&gt;
&lt;DIV align=left&gt;&lt;BR&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the denormalization duplicates data, then the DML operations have to write to multiple tables, this means extra code and extra work. &lt;/DIV&gt;
&lt;DIV align=left&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align=left&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the denormalization duplicates data, these will typically be keys or at least candidate keys, so they’ll be indexed which contributes to the index bloat problem. &lt;BR&gt;&lt;/DIV&gt;
&lt;DIV align=left&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align=left&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the denormalization repeats columns (item1, item2, item3, etc), then the data has to massaged before being inserted or updated, and when reading the data it typically needs to be unpivoted for set-based code, and these operations mean extra work.&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV align=left&gt;Those who promote denormalization would say argue that denormalization is trading write performance for read performance, and this is true for reporting database, but in issue number 3 above, even read performance suffers. &lt;/DIV&gt;
&lt;DIV align=left&gt;&lt;BR&gt;Since denormalization tends to go with SQL code in the app layer (no database abstraction in the form of stored procedures), the denormalization also impacts extensibility, since it’s even more expensive now to modify the database schema. &lt;/DIV&gt;
&lt;DIV align=left&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align=left&gt;In production databases I’ve built, I’ve tested a pure normalized design vs. the best&amp;nbsp;denormalized design I could come up with. Having a clearly defined database abstraction layer meant that I could run one script to modify the table structure, correct the data, and alter the stored procedure, and the app could continue to make the same stored procedure calls without breaking. In every case, the normalized design outperformed the denormalized design by about 15% due the normalized design’s more efficient code.&lt;/DIV&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Denormalize for Performance? &amp;amp;body=Seen on SQLblog.com: %0A%0A%09Denormalize for Performance? %0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx" target="_blank" title = "Email Denormalize for Performance? "&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx&amp;amp;title=Denormalize+for+Performance%3f+" target="_blank" title = "Submit Denormalize for Performance?  to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx&amp;amp;phase=2" target="_blank" title = "Submit Denormalize for Performance?  to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx&amp;amp;title=Denormalize+for+Performance%3f+" target="_blank" title = "Submit Denormalize for Performance?  to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx&amp;amp;title=Denormalize+for+Performance%3f+" target="_blank" title = "Submit Denormalize for Performance?  to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/10/03/denormalize-for-performance.aspx&amp;amp;title=Denormalize+for+Performance%3f+&amp;amp;;top=1" target="_blank" title = "Add Denormalize for Performance?  to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9209" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Normalization/default.aspx">Normalization</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/data+modeling/default.aspx">data modeling</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/abstraction/default.aspx">abstraction</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/denormalization/default.aspx">denormalization</category></item><item><title>Dell hints at next gen Precision notebooks</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx</link><pubDate>Fri, 15 Aug 2008 16:45:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8405</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/8405.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=8405</wfw:commentRss><description>&lt;P&gt;Quad Core, 16Gb RAM, 1TB RAID, 1Gb Graphics, run dual 30' monitors&lt;/P&gt;
&lt;P&gt;see the video: &lt;A href="http://www.dell.com/content/topics/topic.aspx/global/products/precn/topics/en/precision_concept_jumppage?c=us&amp;amp;l=en&amp;amp;s=gen"&gt;http://www.dell.com/content/topics/topic.aspx/global/products/precn/topics/en/precision_concept_jumppage?c=us&amp;amp;l=en&amp;amp;s=gen&lt;/A&gt;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Dell hints at next gen Precision notebooks&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Dell hints at next gen Precision notebooks%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx" target="_blank" title = "Email Dell hints at next gen Precision notebooks"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx&amp;amp;title=Dell+hints+at+next+gen+Precision+notebooks" target="_blank" title = "Submit Dell hints at next gen Precision notebooks to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx&amp;amp;phase=2" target="_blank" title = "Submit Dell hints at next gen Precision notebooks to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx&amp;amp;title=Dell+hints+at+next+gen+Precision+notebooks" target="_blank" title = "Submit Dell hints at next gen Precision notebooks to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx&amp;amp;title=Dell+hints+at+next+gen+Precision+notebooks" target="_blank" title = "Submit Dell hints at next gen Precision notebooks to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/15/dell-hints-at-next-gen-precision-notebooks.aspx&amp;amp;title=Dell+hints+at+next+gen+Precision+notebooks&amp;amp;;top=1" target="_blank" title = "Add Dell hints at next gen Precision notebooks to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8405" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/notebooks/default.aspx">notebooks</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/dell/default.aspx">dell</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/hardware/default.aspx">hardware</category></item><item><title>If SQL was an Olympic sport…</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx</link><pubDate>Fri, 15 Aug 2008 04:47:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8395</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>7</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/8395.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=8395</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;we’d be judged by how well we nailed the disconnect. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Seriously, my Olympic pet peeve is that the gymnasts do these amazing twists and&amp;nbsp;defy gravity, and then the major point of their score is whether they move a foot when they land.&amp;nbsp;It makes no sense to me. &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=If SQL was an Olympic sport…&amp;amp;body=Seen on SQLblog.com: %0A%0A%09If SQL was an Olympic sport…%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx" target="_blank" title = "Email If SQL was an Olympic sport…"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx&amp;amp;title=If+SQL+was+an+Olympic+sport%e2%80%a6" target="_blank" title = "Submit If SQL was an Olympic sport… to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx&amp;amp;phase=2" target="_blank" title = "Submit If SQL was an Olympic sport… to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx&amp;amp;title=If+SQL+was+an+Olympic+sport%e2%80%a6" target="_blank" title = "Submit If SQL was an Olympic sport… to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx&amp;amp;title=If+SQL+was+an+Olympic+sport%e2%80%a6" target="_blank" title = "Submit If SQL was an Olympic sport… to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/if-sql-was-an-olympic-sport.aspx&amp;amp;title=If+SQL+was+an+Olympic+sport%e2%80%a6&amp;amp;;top=1" target="_blank" title = "Add If SQL was an Olympic sport… to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8395" width="1" height="1"&gt;</description></item><item><title>Stupid Index Seek Tricks - using Included Columns</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx</link><pubDate>Fri, 15 Aug 2008 01:44:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8392</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/8392.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=8392</wfw:commentRss><description>&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';"&gt;Usually, we think of index seeks (a possible Query Execution Plan operation) as using the b-tree index to pick out a row and then quickly pass that row to the next operation. But the index seek has special powers: when the conditions are right, it can &lt;STRONG&gt;examine&lt;/STRONG&gt; &lt;STRONG&gt;non-key columns&lt;/STRONG&gt; and filter based on those values inside the index seek operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';"&gt;When this happens the index seek properties will have two predicates – a &lt;STRONG&gt;seek predicate&lt;/STRONG&gt; (which details the b-tree portion of the seek), and a &lt;STRONG&gt;predicate&lt;/STRONG&gt; (with details about the additional filter using non-key columns).&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';"&gt;You can see this behavior with the following code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;USE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt; AdventureWorks2008&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;DROP&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt; &lt;SPAN style="COLOR:blue;"&gt;INDEX&lt;/SPAN&gt; Production&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;WorkOrder&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;IX_WorkOrder_ProductID&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt; &lt;SPAN style="COLOR:blue;"&gt;INDEX&lt;/SPAN&gt; IX_WorkOrder_ProductID&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&lt;/SPAN&gt; Production&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;WorkOrder&lt;SPAN style="COLOR:blue;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;ProductID&lt;SPAN style="COLOR:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;INCLUDE&lt;SPAN style="COLOR:blue;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;StartDate&lt;SPAN style="COLOR:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt; WorkOrderID&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt; StartDate&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&lt;/SPAN&gt; Production&lt;SPAN style="COLOR:gray;"&gt;.&lt;/SPAN&gt;WorkOrder&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;WHERE&lt;/SPAN&gt; ProductID &lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt; 75&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';mso-bidi-font-size:14.0pt;mso-no-proof:yes;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;AND&lt;/SPAN&gt; StartDate &lt;SPAN style="COLOR:gray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="COLOR:red;"&gt;'2002-01-04'&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Stupid Index Seek Tricks - using Included Columns&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Stupid Index Seek Tricks - using Included Columns%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx" target="_blank" title = "Email Stupid Index Seek Tricks - using Included Columns"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx&amp;amp;title=Stupid+Index+Seek+Tricks+-+using+Included+Columns" target="_blank" title = "Submit Stupid Index Seek Tricks - using Included Columns to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx&amp;amp;phase=2" target="_blank" title = "Submit Stupid Index Seek Tricks - using Included Columns to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx&amp;amp;title=Stupid+Index+Seek+Tricks+-+using+Included+Columns" target="_blank" title = "Submit Stupid Index Seek Tricks - using Included Columns to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx&amp;amp;title=Stupid+Index+Seek+Tricks+-+using+Included+Columns" target="_blank" title = "Submit Stupid Index Seek Tricks - using Included Columns to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/stupid-index-seek-tricks-using-included-columns.aspx&amp;amp;title=Stupid+Index+Seek+Tricks+-+using+Included+Columns&amp;amp;;top=1" target="_blank" title = "Add Stupid Index Seek Tricks - using Included Columns to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8392" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/indexing/default.aspx">indexing</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/index+seek/default.aspx">index seek</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/include/default.aspx">include</category></item><item><title>2008 SSMS Query Editing Gem</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx</link><pubDate>Fri, 15 Aug 2008 01:36:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8391</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/8391.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=8391</wfw:commentRss><description>&lt;P&gt;Hidden in the Edit &amp;gt; IntelliSense menu is QuickInfo, keyboard shortcut Ctrl-K, Ctrl-I. It pops up&amp;nbsp;information (e.g. column name, data type, nullability) about the current object (table, view, DMV, column) under the cursor. Very Cool. &lt;/P&gt;
&lt;P&gt;Thank You to Buck and his team of SSMS superstars.&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=2008 SSMS Query Editing Gem&amp;amp;body=Seen on SQLblog.com: %0A%0A%092008 SSMS Query Editing Gem%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx" target="_blank" title = "Email 2008 SSMS Query Editing Gem"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx&amp;amp;title=2008+SSMS+Query+Editing+Gem" target="_blank" title = "Submit 2008 SSMS Query Editing Gem to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx&amp;amp;phase=2" target="_blank" title = "Submit 2008 SSMS Query Editing Gem to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx&amp;amp;title=2008+SSMS+Query+Editing+Gem" target="_blank" title = "Submit 2008 SSMS Query Editing Gem to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx&amp;amp;title=2008+SSMS+Query+Editing+Gem" target="_blank" title = "Submit 2008 SSMS Query Editing Gem to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/2008-ssms-query-editing-gem.aspx&amp;amp;title=2008+SSMS+Query+Editing+Gem&amp;amp;;top=1" target="_blank" title = "Add 2008 SSMS Query Editing Gem to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8391" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/SSMS/default.aspx">SSMS</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/IntelliSense/default.aspx">IntelliSense</category></item><item><title>AutoAudit on CodePlex - vote for your features</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx</link><pubDate>Thu, 14 Aug 2008 23:43:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8389</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/8389.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=8389</wfw:commentRss><description>&lt;P&gt;In an effort to be more "open", I've moved AutoAudit (code-gen utility that creates audit tirggers) from my swebsite to CodePlex. Soemthing I like about CodePlex is the open submission and voting on issues and feature requests. I've moved every feature request from emails and this blog to CodePlex. I invite you to download, submit requests, and vote at:&amp;nbsp;&lt;A href="http://www.codeplex.com/AutoAudit/WorkItem/List.aspx"&gt;http://www.codeplex.com/AutoAudit/WorkItem/List.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=AutoAudit on CodePlex - vote for your features&amp;amp;body=Seen on SQLblog.com: %0A%0A%09AutoAudit on CodePlex - vote for your features%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx" target="_blank" title = "Email AutoAudit on CodePlex - vote for your features"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx&amp;amp;title=AutoAudit+on+CodePlex+-+vote+for+your+features" target="_blank" title = "Submit AutoAudit on CodePlex - vote for your features to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx&amp;amp;phase=2" target="_blank" title = "Submit AutoAudit on CodePlex - vote for your features to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx&amp;amp;title=AutoAudit+on+CodePlex+-+vote+for+your+features" target="_blank" title = "Submit AutoAudit on CodePlex - vote for your features to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx&amp;amp;title=AutoAudit+on+CodePlex+-+vote+for+your+features" target="_blank" title = "Submit AutoAudit on CodePlex - vote for your features to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/14/autoaudit-on-codeplex-vote-for-your-features.aspx&amp;amp;title=AutoAudit+on+CodePlex+-+vote+for+your+features&amp;amp;;top=1" target="_blank" title = "Add AutoAudit on CodePlex - vote for your features to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8389" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Audit+Trails/default.aspx">Audit Trails</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Code-Gen/default.aspx">Code-Gen</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/AutoAudit/default.aspx">AutoAudit</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/CodePlex/default.aspx">CodePlex</category></item><item><title>Euro-style SQL sticker</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx</link><pubDate>Tue, 05 Aug 2008 06:08:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8199</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>4</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/8199.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=8199</wfw:commentRss><description>&lt;P&gt;I love SQL and I wanted to put a oval Euro-style "SQL" sticker on the&amp;nbsp;cover of my notebook. It's&amp;nbsp;about the same cost&amp;nbsp;to order a lot than to order one, so I have&amp;nbsp;a few left over.&amp;nbsp;They're nice vinyl top quality stickers suitable for a nice top quality notebook&amp;nbsp;(see attachment).&lt;/P&gt;
&lt;P&gt;If you'd like one, email me your name and address, and I'll snail mail you a sticker as a thanks for reading my blog (till they run out).&amp;nbsp;No strings attached, I don't do anything with your address except mail you the sticker. &lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:pauln@sqlserverbible.com"&gt;pauln@sqlserverbible.com&lt;/A&gt; please use the subject: Euro SQL Sticker&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Euro-style SQL sticker&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Euro-style SQL sticker%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx" target="_blank" title = "Email Euro-style SQL sticker"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx&amp;amp;title=Euro-style+SQL+sticker" target="_blank" title = "Submit Euro-style SQL sticker to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx&amp;amp;phase=2" target="_blank" title = "Submit Euro-style SQL sticker to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx&amp;amp;title=Euro-style+SQL+sticker" target="_blank" title = "Submit Euro-style SQL sticker to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx&amp;amp;title=Euro-style+SQL+sticker" target="_blank" title = "Submit Euro-style SQL sticker to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/08/05/euro-style-sql-sticker.aspx&amp;amp;title=Euro-style+SQL+sticker&amp;amp;;top=1" target="_blank" title = "Add Euro-style SQL sticker to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8199" width="1" height="1"&gt;</description><enclosure url="http://sqlblog.com/blogs/paul_nielsen/attachment/8199.ashx" length="3032" type="image/gif" /><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Sticker/default.aspx">Sticker</category></item><item><title>SSMS T-SQL Debugger ScreenCast</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx</link><pubDate>Wed, 23 Jul 2008 06:22:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7991</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/7991.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=7991</wfw:commentRss><description>&lt;P&gt;just posted - &lt;A class="" href="http://www.screencast.com/t/Dgohd2wCkfG"&gt;SSMS T-SQL Debugger ScreenCast&lt;/A&gt; 5:58 - focuses on the call stack. If you haven't played with the new Debugger, this is an easy way to get a look-see.&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=SSMS T-SQL Debugger ScreenCast&amp;amp;body=Seen on SQLblog.com: %0A%0A%09SSMS T-SQL Debugger ScreenCast%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx" target="_blank" title = "Email SSMS T-SQL Debugger ScreenCast"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx&amp;amp;title=SSMS+T-SQL+Debugger+ScreenCast" target="_blank" title = "Submit SSMS T-SQL Debugger ScreenCast to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx&amp;amp;phase=2" target="_blank" title = "Submit SSMS T-SQL Debugger ScreenCast to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx&amp;amp;title=SSMS+T-SQL+Debugger+ScreenCast" target="_blank" title = "Submit SSMS T-SQL Debugger ScreenCast to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx&amp;amp;title=SSMS+T-SQL+Debugger+ScreenCast" target="_blank" title = "Submit SSMS T-SQL Debugger ScreenCast to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/23/ssms-t-sql-debugger-screencast.aspx&amp;amp;title=SSMS+T-SQL+Debugger+ScreenCast&amp;amp;;top=1" target="_blank" title = "Add SSMS T-SQL Debugger ScreenCast to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=7991" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Screencast/default.aspx">Screencast</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/SSMS/default.aspx">SSMS</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/debugger/default.aspx">debugger</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/SQL+Server+2008/default.aspx">SQL Server 2008</category></item><item><title>The Romantic DBA</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx</link><pubDate>Thu, 17 Jul 2008 23:30:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7892</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/7892.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=7892</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Tomorrow is our Thousandths Day - Edie and I will have been married for exactly one thousand days. How do I know? SQL Server told me: &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;SPAN style="FONT-SIZE:12pt;COLOR:blue;LINE-HEIGHT:115%;FONT-FAMILY:Consolas;mso-bidi-font-family:'Times New Roman';mso-bidi-font-size:16.0pt;mso-no-proof:yes;"&gt;Select&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:12pt;LINE-HEIGHT:115%;FONT-FAMILY:Consolas;mso-bidi-font-family:'Times New Roman';mso-bidi-font-size:16.0pt;mso-no-proof:yes;"&gt; &lt;SPAN style="COLOR:fuchsia;"&gt;DateAdd&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;d&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt; 1000&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="COLOR:red;"&gt;'10/22/2005'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;When I first told Edie about Thousandths Day a few months ago, she thought I was making it up, but now she's wondering what I have planned. Since she never reads my blog… I booked the romance package at the Antler's Hotel where we had our wedding reception and a dinner at La Creperie, our favorite French restaurant downtown Colorado Springs. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=The Romantic DBA&amp;amp;body=Seen on SQLblog.com: %0A%0A%09The Romantic DBA%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx" target="_blank" title = "Email The Romantic DBA"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx&amp;amp;title=The+Romantic+DBA" target="_blank" title = "Submit The Romantic DBA to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx&amp;amp;phase=2" target="_blank" title = "Submit The Romantic DBA to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx&amp;amp;title=The+Romantic+DBA" target="_blank" title = "Submit The Romantic DBA to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx&amp;amp;title=The+Romantic+DBA" target="_blank" title = "Submit The Romantic DBA to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/17/the-romantic-dba.aspx&amp;amp;title=The+Romantic+DBA&amp;amp;;top=1" target="_blank" title = "Add The Romantic DBA to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=7892" width="1" height="1"&gt;</description></item><item><title>Zoomix, Semantics, and the future of SQL Server</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx</link><pubDate>Tue, 15 Jul 2008 20:55:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7859</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/7859.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=7859</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Yesterday, &lt;A class="" href="http://www.networkworld.com/news/2008/071408-microsoft-buys-zoomix-to-add.html"&gt;Microsoft bought Zoomix&lt;/A&gt;, a very cool Israeli company. (&amp;lt;tangent&amp;gt; Israel is one of my favorite words -&amp;nbsp;rich with layers of meaning: Isra meaning "one who struggles" and El, a Hebrew name for God &amp;lt;/tangent&amp;gt;.) &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Sunday I meet up with a friend who has a PhD in Computer Science and does research in a government lab. He said the most important database trend was semantics - identifying meta data about data. He also said the Oracle was all over semantics and Microsoft was behind the curve on this one. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Zoomix is a database semantics company researching data cleansing, linguistics and how these technologies become practical with databases. The Jerusalem based company will be integrated with Microsoft's Israeli research center and their work is going to integrated into future SQL Server versions. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Sounds cool to me. &lt;/FONT&gt;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Zoomix, Semantics, and the future of SQL Server&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Zoomix, Semantics, and the future of SQL Server%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx" target="_blank" title = "Email Zoomix, Semantics, and the future of SQL Server"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx&amp;amp;title=Zoomix%2c+Semantics%2c+and+the+future+of+SQL+Server" target="_blank" title = "Submit Zoomix, Semantics, and the future of SQL Server to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx&amp;amp;phase=2" target="_blank" title = "Submit Zoomix, Semantics, and the future of SQL Server to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx&amp;amp;title=Zoomix%2c+Semantics%2c+and+the+future+of+SQL+Server" target="_blank" title = "Submit Zoomix, Semantics, and the future of SQL Server to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx&amp;amp;title=Zoomix%2c+Semantics%2c+and+the+future+of+SQL+Server" target="_blank" title = "Submit Zoomix, Semantics, and the future of SQL Server to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/07/15/zoomix-semantics-and-the-future-of-sql-server.aspx&amp;amp;title=Zoomix%2c+Semantics%2c+and+the+future+of+SQL+Server&amp;amp;;top=1" target="_blank" title = "Add Zoomix, Semantics, and the future of SQL Server to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=7859" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Zoomix+semantics/default.aspx">Zoomix semantics</category></item><item><title>OT: NY Times Tech Editorial on Windows 7 </title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx</link><pubDate>Tue, 01 Jul 2008 03:42:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7586</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/7586.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=7586</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;I like the Vista interface, but I know that under the covers Vista is a bit bloated. I've blogged before that the one of the problems with the Vista vs. XP debate is that not every computer needs the power user UI of Vista. Many production machines are better off with the lighter weight XP. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;Now we hear that Windows 7 won't be the redesigned microkernel MinWin that was talked about last year. This well written, thoughtful &lt;A class="" href="http://www.nytimes.com/2008/06/29/technology/29digi.html?_r=1&amp;amp;ref=technology&amp;amp;oref=slogin"&gt;NY Times tech editorial&lt;/A&gt; calls for a new kernel for a new Windows. As a huge fan of Windows and one who wishes the very best for Microsoft and the Windows user base, I too would like to see the next Windows be a hit out of the park, not just Vista with multi-touch. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri size=3&gt;It's time to make a clean break from the past and architect a new kernel that's designed for multi-processors, SSD disks, and virtualization. Modern virtualization means that compatability can be accomplished with VPC running XP. It's time to shrug off the shackes of compatability.&amp;nbsp;I have no doubt that Microsoft can do it. Come on Steve, build a Windows that will make everyone want to jump from XP! &lt;/FONT&gt;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=OT: NY Times Tech Editorial on Windows 7 &amp;amp;body=Seen on SQLblog.com: %0A%0A%09OT: NY Times Tech Editorial on Windows 7 %0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx" target="_blank" title = "Email OT: NY Times Tech Editorial on Windows 7 "&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx&amp;amp;title=OT%3a+NY+Times+Tech+Editorial+on+Windows+7+" target="_blank" title = "Submit OT: NY Times Tech Editorial on Windows 7  to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx&amp;amp;phase=2" target="_blank" title = "Submit OT: NY Times Tech Editorial on Windows 7  to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx&amp;amp;title=OT%3a+NY+Times+Tech+Editorial+on+Windows+7+" target="_blank" title = "Submit OT: NY Times Tech Editorial on Windows 7  to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx&amp;amp;title=OT%3a+NY+Times+Tech+Editorial+on+Windows+7+" target="_blank" title = "Submit OT: NY Times Tech Editorial on Windows 7  to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/30/ot-ny-times-tech-editorial-on-windows-7.aspx&amp;amp;title=OT%3a+NY+Times+Tech+Editorial+on+Windows+7+&amp;amp;;top=1" target="_blank" title = "Add OT: NY Times Tech Editorial on Windows 7  to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=7586" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Count of rows within five minutes of first instance</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx</link><pubDate>Thu, 26 Jun 2008 18:52:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7525</guid><dc:creator>Paul Nielsen</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/paul_nielsen/comments/7525.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/paul_nielsen/commentrss.aspx?PostID=7525</wfw:commentRss><description>&lt;P&gt;In the SSWUG Virtual conference, Earl asks, &lt;/P&gt;&lt;FONT color=#008000 size=5&gt;&lt;FONT color=#008000 size=5&gt;
&lt;P&gt;&lt;FONT size=2&gt;Paul, I am looking @ several million records. &lt;/FONT&gt;&lt;FONT size=2&gt;In each record is a nvarchar that IDs the record and a &lt;/FONT&gt;&lt;FONT size=2&gt;datetime for when the transaction took place for that nvarchar ID. &lt;/FONT&gt;&lt;FONT size=2&gt;I need to capture the nvarchar ID when a number of the records for that &lt;/FONT&gt;&lt;FONT size=2&gt;nvarchar ID was within a time period of the other records with the same nvarcharID. &lt;/FONT&gt;&lt;FONT size=2&gt;It seems that a cursor is the best way to go through each record to verify a count &lt;/FONT&gt;&lt;FONT size=2&gt;for the nvarchar ID each time the record was within (5) minutes of the original record. &lt;/FONT&gt;&lt;FONT size=2&gt;Would you have a set oriented method for extracting these sets of records?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;Here's your script Earl,&lt;/P&gt;&lt;FONT color=#0000ff size=5&gt;&lt;FONT color=#0000ff size=5&gt;
&lt;P&gt;&lt;SPAN style="COLOR:blue;"&gt;&lt;FONT face="Courier New" size=1&gt;USE&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;TempDB &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;CREATE&amp;nbsp;TABLE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;( &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1ID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;NOT&amp;nbsp;NULL&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#434343;"&gt;IDENTITY&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;PRIMARY&amp;nbsp;KEY&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;, &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;NVARCHAR&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;50&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;)&amp;nbsp;NOT&amp;nbsp;NULL, &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&amp;nbsp;DateTime&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;&lt;FONT face="Courier New" size=1&gt;NOT&amp;nbsp;NULL &lt;BR&gt;&amp;nbsp;&amp;nbsp;) &lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;GO &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INSERT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;VALUES&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'abc'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'1/1/1980'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INSERT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;VALUES&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'qwerty'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'1/1/1980'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR:gray;"&gt;&lt;FONT face="Courier New" size=1&gt;) &lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;GO&amp;nbsp;3 &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INSERT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;VALUES&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'abc'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:magenta;"&gt;GETDATE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;()) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INSERT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;VALUES&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'qwerty'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:magenta;"&gt;GETDATE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;()) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INSERT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;VALUES&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'qwerty'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:magenta;"&gt;GETDATE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;()) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;INSERT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;VALUES&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:red;"&gt;'xyz'&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:magenta;"&gt;GETDATE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;())&amp;nbsp;&lt;BR&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:blue;"&gt;WAITFOR&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;delay&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR:red;"&gt;&lt;FONT face="Courier New" size=1&gt;'000:000:000.050' &lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;GO&amp;nbsp;25&amp;nbsp;&lt;BR&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;WITH&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;FirstRecord&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR:blue;"&gt;&lt;FONT face="Courier New" size=1&gt;AS &lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;( &lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;SELECT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;TransTime&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;AS&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;FirstTime &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;T1 &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;GROUP&amp;nbsp;BY&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;RecordID&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;SELECT&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1.RecordID&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:magenta;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(*)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;AS&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:magenta;"&gt;COUNT &lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;FROM&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;T1&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;JOIN&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;FirstRecord &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;ON&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1.RecordID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:black;"&gt;FirstRecord.RecordID &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;AND&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;T1.TransTime&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;&amp;lt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:magenta;"&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;n&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR:gray;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:black;"&gt;FirstTime&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="COLOR:gray;"&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:blue;"&gt;GROUP&amp;nbsp;BY&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;SPAN style="COLOR:black;"&gt;&lt;FONT face="Courier New"&gt;T1.RecordID &lt;/FONT&gt;&lt;BR&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Count of rows within five minutes of first instance&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Count of rows within five minutes of first instance%0A%0Ahttp://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx" target="_blank" title = "Email Count of rows within five minutes of first instance"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx&amp;amp;title=Count+of+rows+within+five+minutes+of+first+instance" target="_blank" title = "Submit Count of rows within five minutes of first instance to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx&amp;amp;phase=2" target="_blank" title = "Submit Count of rows within five minutes of first instance to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx&amp;amp;title=Count+of+rows+within+five+minutes+of+first+instance" target="_blank" title = "Submit Count of rows within five minutes of first instance to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx&amp;amp;title=Count+of+rows+within+five+minutes+of+first+instance" target="_blank" title = "Submit Count of rows within five minutes of first instance to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/paul_nielsen/archive/2008/06/26/count-of-rows-within-five-minutes-of-first-instance.aspx&amp;amp;title=Count+of+rows+within+five+minutes+of+first+instance&amp;amp;;top=1" target="_blank" title = "Add Count of rows within five minutes of first instance to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=7525" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/T-SQL/default.aspx">T-SQL</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/SSWUG+Virtual+Conference/default.aspx">SSWUG Virtual Conference</category><category domain="http://sqlblog.com/blogs/paul_nielsen/archive/tags/Aggregate+Queries/default.aspx">Aggregate Queries</category></item></channel></rss>