﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0"><channel><title>SQLServerCentral.com Articles tagged CTE</title><link>http://www.sqlservercentral.com/</link><description>Articles tagged CTE posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>Exploring Recursive CTEs by Example</title><description><![CDATA[<p>Recursive CTEs can be confusing and scary, so examining some non-standard examples may cast light upon these shadowy demons.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/90955/</guid><pubDate>Tue, 17 Jul 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/90955/</link></item><item><title>Pros and cons of six SQL table tools</title><description><![CDATA[<p>This article shows how to use 6 SQL table-based tools to solve the same problem, and gives the pros and cons of each.</p><!-- Breeze (SQL Prompt) -->
<table border="0" cellpadding="0" cellspacing="10" style="width: 100%;"> <colgroup>  <col width="68" />  <col width="1266" /> </colgroup> <tbody>  <tr align="left" valign="top">   <td>    <a href="http://www.red-gate.com/products/sql-development/sql-prompt/entrypage/effortlessly?utm_source=ssc&utm_medium=pubad&utm_content=breeze&utm_campaign=sqlprompt&utm_term=rss-20015"><img src="http://assets.red-gate.com/external/SSC/Prompt_68.gif" alt="sqlprompt"></td>   <td><strong>Make working with SQL a breeze</strong><br />SQL Prompt 5 is the effortless way to write, edit, and explore SQL. It's packed with features such as code completion, script summaries, and SQL reformatting, that make working with SQL a breeze.  <a href="http://www.red-gate.com/products/sql-development/sql-prompt/entrypage/effortlessly?utm_source=ssc&utm_medium=pubad&utm_content=breeze&utm_campaign=sqlprompt&utm_term=rss-20015">Try it now.</a></td>  </tr> </tbody></table>
]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/76673/</guid><pubDate>Mon, 26 Dec 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/76673/</link></item><item><title>Dealing with Incomplete Data - A T-SQL Puzzle 1</title><description><![CDATA[<p>Client data received for processing may have invalid records based on processing requirements. Identifying and dealing with bad records in a specific scenario is the object of this article.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/74088/</guid><pubDate>Tue, 22 Nov 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/74088/</link></item><item><title>Calculating Stock Returns Using the ROW_NUMBER function and CTEs</title><description><![CDATA[<p>In finance, when pricing data isn't available on last day of week, month or year, calculating returns is tricky. This article addresses the issue. </p>]]></description><guid>http://www.sqlservercentral.com/articles/Common+Table+Expressions/75445/</guid><pubDate>Tue, 18 Oct 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Common+Table+Expressions/75445/</link></item><item><title>Hidden RBAR: Counting with Recursive CTE's</title><description><![CDATA[<p>&quot;Counting&quot; is essential to many high performance code techniques.  SQL Server MVP, Jeff Moden, shows us how to make sure that we're &quot;Counting&quot; and not &quot;Crippling&quot; our trick-code.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/74118/</guid><pubDate>Mon, 08 Aug 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/74118/</link></item><item><title>Displaying Sorted Hierarchies (SQL Spackle)</title><description><![CDATA[<p>Learn how you can query a hierarchy of data and also return the results in an ordered fashion. A handy T-SQL skill that you will use over and over again.</p><!-- 5 Minutes (SQL Source Control)-->
<table border="0" cellpadding="0" cellspacing="10" style="width: 100%;"> <colgroup>  <col width="68" />  <col width="1266" /> </colgroup> <tbody>  <tr align="left" valign="top">   <td>    <a href="http://www.red-gate.com/products/sql-development/sql-source-control/entrypage/5-minutes?utm_source=ssc&utm_medium=pubad&utm_content=5mins&utm_campaign=sqlsourcecontrol&utm_term=rss-20012"><img src="http://assets.red-gate.com/external/SSC/SOC5mins68x68.gif" alt="sqlsourcecontrol"></td>   <td><strong>Database source control in just 5 minutes</strong><br />It takes just 5 minutes to connect your SQL databases to source control. Got 5 minutes to spare?  <a href="http://www.red-gate.com/products/sql-development/sql-source-control/entrypage/5-minutes?utm_source=ssc&utm_medium=pubad&utm_content=5mins&utm_campaign=sqlsourcecontrol&utm_term=rss-20012">Get started now.</a></td>  </tr> </tbody></table>

]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/72503/</guid><pubDate>Thu, 10 Mar 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/72503/</link></item><item><title>Concatenating Rows</title><description><![CDATA[<p>Often in database design we store different values in rows to take advantage of a normalized design. However many times we need to combine multiple rows of data into one row for a report of some sort. New author Carl P. Anderson brings us some interesting T-SQL code to accomplish this.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/67973/</guid><pubDate>Fri, 04 Mar 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/67973/</link></item><item><title>Common table expressions and circular references</title><description><![CDATA[<p>Finding circular references that are stopping your CTE from working.</p>]]></description><guid>http://www.sqlservercentral.com/articles/CTE/72192/</guid><pubDate>Mon, 31 Jan 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/CTE/72192/</link></item><item><title>How to Compare Rows within Partitioned Sets to Find Overlapping Dates</title><description><![CDATA[<p>How to Compare Rows within Partitioned Sets to Find Overlapping, Contiguous, or Gap dates</p>]]></description><guid>http://www.sqlservercentral.com/articles/CTE/71169/</guid><pubDate>Mon, 11 Oct 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/CTE/71169/</link></item><item><title>An Urgent Ad Hoc Report</title><description><![CDATA[<p>In this new article, Yakov Shlafman shows us how he wrote a quick ad hoc report of expenses so that he could leave on time one day.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/69497/</guid><pubDate>Wed, 17 Mar 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/69497/</link></item><item><title>Calculating Moving Averages with T-SQL</title><description><![CDATA[<p>How to efficiently calculate moving averages with SQL Server using Stock Market data.</p>]]></description><guid>http://www.sqlservercentral.com/articles/Moving+Average/69389/</guid><pubDate>Thu, 04 Mar 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Moving+Average/69389/</link></item><item><title>Convert String to a Table using CTE</title><description><![CDATA[<p>Explains how to convert a list of Ids passed as string and convert it to a table</p>]]></description><guid>http://www.sqlservercentral.com/articles/CTE/67974/</guid><pubDate>Mon, 14 Dec 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/CTE/67974/</link></item><item><title>Concatenating Rows</title><description><![CDATA[<p>Often in database design we store different values in rows to take advantage of a normalized design. However many times we need to combine multiple rows of data into one row for a report of some sort. New author Carl P. Anderson brings us some interesting T-SQL code to accomplish this.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/67973/</guid><pubDate>Fri, 04 Mar 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/67973/</link></item><item><title>The Dynamic Tally or Numbers Table</title><description><![CDATA[<p>Building a tally table is a common T-SQL problem that many new developers struggle with. Lynn Pettis brings us an article that shows how to use CTEs to accomplish this.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/67899/</guid><pubDate>Tue, 22 Sep 2009 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/67899/</link></item></channel></rss>