﻿<?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, pivot</title><link>http://www.sqlservercentral.com/</link><description>Content tagged T-SQL, pivot posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>UNPIVOT a table using CROSS APPLY</title><description><![CDATA[<p>I generally spend part of each day looking through http://www.stackoverflow.com, http://dba.stackexchange.com or http://www.sqlservercentral.com.  I read through questions that have already...</p>]]></description><guid>http://www.sqlservercentral.com/blogs/sqlstudies/2013/04/01/unpivot-a-table-using-cross-apply/</guid><pubDate>Fri, 12 Apr 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/blogs/sqlstudies/2013/04/01/unpivot-a-table-using-cross-apply/</link></item><item><title>The Ultimate Index Usage Reporter</title><description><![CDATA[<p>Reports index stats, index size+rows, member seek + include columns as two comma separated output columns, and index usage stats for one or more tables and/or schemas.</p><!-- 15 seconds (SQL Monitor) -->
<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/dba/sql-monitor/entrypage/custom-metrics?utm_source=ssc&utm_medium=pubad&utm_content=15_seconds&utm_campaign=sqlmonitor&utm_term=rss-20017"><img src="http://assets.red-gate.com/external/SSC/monitor_ico.gif" alt="sqlmonitor"></td>   <td><strong>Get alerts within 15 seconds of SQL Server issues</strong><br />SQL Monitor checks performance data every 15 seconds, so you can fix issues before your users even notice them.  <a href="http://www.red-gate.com/products/dba/sql-monitor/entrypage/custom-metrics?utm_source=ssc&utm_medium=pubad&utm_content=15_seconds&utm_campaign=sqlmonitor&utm_term=rss-20017">Start monitoring with a free trial.</a></td>  </tr> </tbody></table>


]]></description><guid>http://www.sqlservercentral.com/scripts/Indexing/63934/</guid><pubDate>Thu, 27 Dec 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Indexing/63934/</link></item><item><title>Dynamic PIVOT CLR</title><description><![CDATA[<p>Learn how yo can use a SQL-CLR procedure to handle all your PIVOT queries.</p><!-- how to automate(Deployment Manager) -->
<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/deployment-manager-68x68.png" alt="deploymentmanager"></td>   <td><strong>How to automate your .NET and SQL Server deployments</strong><br />Deploy .NET code and SQL Server databases in a single repeatable process with Red Gate Deployment Manager. <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">Start deploying with a 28-day trial</a></td>  </tr> </tbody></table>

]]></description><guid>http://www.sqlservercentral.com/articles/.Net/94922/</guid><pubDate>Thu, 06 Dec 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/.Net/94922/</link></item><item><title>A Stock Price Correlation Matrix</title><description><![CDATA[<p>Building a Stock Price Correlation Matrix Using TVPs, a CROSS JOIN and the PIVOT Function</p>]]></description><guid>http://www.sqlservercentral.com/articles/TVP/89442/</guid><pubDate>Mon, 14 May 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/TVP/89442/</link></item><item><title>Using PIVOT</title><description><![CDATA[<p>how can use pivot for reporting</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/scripts/T-SQL/70819/</guid><pubDate>Mon, 02 Aug 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/70819/</link></item><item><title>Simple Crosstab Procedure with Power</title><description><![CDATA[<p>Create crosstab queries as easily as MS Access with a lot more power.</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/scripts/Crosstab/66452/</guid><pubDate>Wed, 02 Jun 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Crosstab/66452/</link></item><item><title>Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs</title><description><![CDATA[<p>In Part 1, we learned how to make both Cross-Tabs and Pivots. In Part 2, we'll learn how to automate a very common type of Cross-Tab report and maybe learn some extra tricks on the way.</p>]]></description><guid>http://www.sqlservercentral.com/articles/Crosstab/65048/</guid><pubDate>Fri, 30 Apr 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Crosstab/65048/</link></item><item><title>Simple Crosstab Procedure with Power</title><description><![CDATA[<p>Create crosstab queries as easily as MS Access with a lot more power.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Crosstab/66452/</guid><pubDate>Wed, 02 Jun 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Crosstab/66452/</link></item><item><title>Dynamic table not imposible</title><description><![CDATA[<p>I needed to display my data in columns but could not use pivots or cross tables because it wasn't a fix amount of columns. so I created this script, I hope is useful.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/65735/</guid><pubDate>Fri, 20 Feb 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/65735/</link></item><item><title>The Ultimate Index Width Stats Reporter</title><description><![CDATA[<p>Reports index length stats for indexes who's lengths exceeding parametrized thresholds (defaults to 0 - get all) for total length and seek length, optionally filtering schemas and tables.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/65598/</guid><pubDate>Wed, 28 Jan 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/65598/</link></item><item><title>Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs</title><description><![CDATA[<p>In Part 1, we learned how to make both Cross-Tabs and Pivots. In Part 2, we'll learn how to automate a very common type of Cross-Tab report and maybe learn some extra tricks on the way.</p>]]></description><guid>http://www.sqlservercentral.com/articles/Crosstab/65048/</guid><pubDate>Fri, 30 Apr 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Crosstab/65048/</link></item><item><title>The Ultimate Prospective-Index Column(s) Selectivity Analyzer</title><description><![CDATA[<p>Gets single-column and cumulative-column selectivity stats and @Top largest dupe sets for each cumulative column stepping for a set of one or more columns for a table.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Indexing/63936/</guid><pubDate>Fri, 24 Oct 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Indexing/63936/</link></item><item><title>The Ultimate Duplicate Index Finder</title><description><![CDATA[<p>Searches database-wide for multiple indexes in the same table which has the same column as the first seek key.  Optionally limits to LIKE wildcard patterns of table and schema names.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Indexing/63935/</guid><pubDate>Fri, 17 Oct 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Indexing/63935/</link></item><item><title>The Ultimate Index Usage Reporter</title><description><![CDATA[<p>Reports index stats, index size+rows, member seek + include columns as two comma separated output columns, and index usage stats for one or more tables and/or schemas.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Indexing/63934/</guid><pubDate>Thu, 27 Dec 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Indexing/63934/</link></item><item><title>The Ultimate Index Lister (Pivoted)</title><description><![CDATA[<p>Lists details for all indexes on one or more tables / schemas, including row count and size. This version outputs the member seek + include columns as two comma separated output columns.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Indexing/63931/</guid><pubDate>Thu, 09 Oct 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Indexing/63931/</link></item><item><title>PIVOT working incorrectly?</title><description><![CDATA[<p>One developer's journey through PIVOTing incorrectly.</p>]]></description><guid>http://www.sqlservercentral.com/articles/pivot/62808/</guid><pubDate>Tue, 13 May 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/pivot/62808/</link></item></channel></rss>