﻿<?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 Content tagged T-SQL, CTE</title><link>http://www.sqlservercentral.com/</link><description>Content tagged T-SQL, CTE posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>Multiple CTEs</title><description><![CDATA[<p>Multiple CTEs
It’s somewhat obscure in BOL and I wasn’t able to find any examples but it turns out you can...</p>]]></description><guid>http://www.sqlservercentral.com/blogs/sqlstudies/2012/10/09/multiple-ctes/</guid><pubDate>Thu, 11 Oct 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/blogs/sqlstudies/2012/10/09/multiple-ctes/</link></item><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>]]></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>]]></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>Search all columns in every table for a value</title><description><![CDATA[<p>This script allows a user to search every field in a database for a specified value - handy when knowing the data but not the schema.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/69207/</guid><pubDate>Tue, 09 Nov 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/69207/</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><!-- safeguard (SQL Backup) -->
<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="https://sqlbackup.red-gate.com/LogIn?utm_source=ssc&utm_medium=pubad&utm_content=safeguard_backups&utm_campaign=sqlbackup&utm_term=rss-20016"><img src="http://assets.red-gate.com/external/SSC/backuphosted_white_68x68.png" alt="sqlbackup"></td>   <td><strong>New! Safeguard your SQL backups</strong><br />Protect your backups from onsite disaster with SQL Backup Pro and a Hosted Storage account from Red Gate.  <a href="https://sqlbackup.red-gate.com/LogIn?utm_source=ssc&utm_medium=pubad&utm_content=safeguard_backups&utm_campaign=sqlbackup&utm_term=rss-20016">Learn more</a></td>  </tr> </tbody></table>

]]></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>How many rows are returned from the query below?</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/CTE/69094/</guid><pubDate>Wed, 03 Mar 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/CTE/69094/</link></item><item><title>Search all columns in every table for a value</title><description><![CDATA[<p>This script allows a user to search every field in a database for a specified value - handy when knowing the data but not the schema.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/69207/</guid><pubDate>Tue, 09 Nov 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/69207/</link></item><item><title>Riddle Me This</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/69098/</guid><pubDate>Mon, 21 Dec 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/69098/</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>