﻿<?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, Aggregates</title><link>http://www.sqlservercentral.com/</link><description>Content tagged T-SQL, Aggregates posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>Aggregates in T-SQL</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/94901/</guid><pubDate>Fri, 21 Dec 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/94901/</link></item><item><title>Aggregates</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/93619/</guid><pubDate>Thu, 06 Dec 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/93619/</link></item><item><title>Generating SubTotals using GROUPING</title><description><![CDATA[<p>This article explains how to use the GROUPING clause to generate subtotals for rows in a very easy fashion.</p><!-- disturbing m2 (DBA Bundle) -->
<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/dba-bundle/entrypage/hard-earned-lessons-4?utm_source=ssc&utm_medium=pubad&utm_content=disturbing_m2&utm_campaign=sqldbabundle&utm_term=rss-20019"><img src="http://assets.red-gate.com/external/SSC/top5_68x68.gif" alt="sqldbabundle"></td>   <td><strong>Top 5 hard-earned Lessons of a DBA </strong><br />New! Part 4, ‘Disturbing Development’ by Grant Fritchey, features the return of Joe Deebeeay and a server-threatening encounter with ORMs -  <a href="http://www.red-gate.com/products/dba/dba-bundle/entrypage/hard-earned-lessons-4?utm_source=ssc&utm_medium=pubad&utm_content=disturbing_m2&utm_campaign=sqldbabundle&utm_term=rss-20019">read it here</a></td>  </tr> </tbody></table>
]]></description><guid>http://www.sqlservercentral.com/articles/Groouping/70023/</guid><pubDate>Fri, 16 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Groouping/70023/</link></item><item><title>SUM and Addition of Null</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/Aggregates/93630/</guid><pubDate>Mon, 05 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/Aggregates/93630/</link></item><item><title>Basic of T-SQL</title><description><![CDATA[<p></p><!-- disturbing m2 (DBA Bundle) -->
<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/dba-bundle/entrypage/hard-earned-lessons-4?utm_source=ssc&utm_medium=pubad&utm_content=disturbing_m2&utm_campaign=sqldbabundle&utm_term=rss-20019"><img src="http://assets.red-gate.com/external/SSC/top5_68x68.gif" alt="sqldbabundle"></td>   <td><strong>Top 5 hard-earned Lessons of a DBA </strong><br />New! Part 4, ‘Disturbing Development’ by Grant Fritchey, features the return of Joe Deebeeay and a server-threatening encounter with ORMs -  <a href="http://www.red-gate.com/products/dba/dba-bundle/entrypage/hard-earned-lessons-4?utm_source=ssc&utm_medium=pubad&utm_content=disturbing_m2&utm_campaign=sqldbabundle&utm_term=rss-20019">read it here</a></td>  </tr> </tbody></table>
]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/92490/</guid><pubDate>Mon, 20 Aug 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/92490/</link></item><item><title>Aggregate Function Product()</title><description><![CDATA[<p>The TSQL aggregate function SUM() gives a number based on the addition of the values of multiple rows to each other.  Do the same thing but with multiplication instead of addition.  </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/articles/T-SQL/77391/</guid><pubDate>Mon, 06 Feb 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/77391/</link></item><item><title>How to get monthly YTD data</title><description><![CDATA[<p>This article presents an easy method to get YTD data grouped by months in T-SQL.</p>]]></description><guid>http://www.sqlservercentral.com/articles/T-SQL/76940/</guid><pubDate>Tue, 24 Jan 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/76940/</link></item><item><title>Script to calculate the Median value for SQL Server data </title><description><![CDATA[<p>The standard SQL language has a number of aggregate functions like: SUM, MIN, MAX, AVG, but a common statistics function that SQL Server does not have is a built-in aggregate function for median. The median is the value that falls in the middle of a sorted resultset with equal parts that are smaller and equal parts that are greater. Since there is no built-in implementation for the median, the following is a simple solution I put together to find the median. </p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/76831/</guid><pubDate>Tue, 08 Nov 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/76831/</link></item><item><title>Grouping Sets</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/Aggregates/75489/</guid><pubDate>Tue, 30 Aug 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/Aggregates/75489/</link></item><item><title>How well do you know MAX?</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/MAX()/74115/</guid><pubDate>Fri, 05 Aug 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/MAX()/74115/</link></item><item><title>AVG function</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/73651/</guid><pubDate>Tue, 21 Jun 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/73651/</link></item><item><title>SQL Function to get Max, Min values from given collection of values</title><description><![CDATA[<p>This func returns the max value,min value and count of values from collection of values</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Aggregates/72130/</guid><pubDate>Thu, 20 Jan 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Aggregates/72130/</link></item><item><title>Using OVER with an Aggregate Function</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/70821/</guid><pubDate>Thu, 04 Nov 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/70821/</link></item><item><title>Generating SubTotals using GROUPING</title><description><![CDATA[<p>This article explains how to use the GROUPING clause to generate subtotals for rows in a very easy fashion.</p>]]></description><guid>http://www.sqlservercentral.com/articles/Groouping/70023/</guid><pubDate>Fri, 16 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Groouping/70023/</link></item><item><title>COUNT_BIG</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/68722/</guid><pubDate>Tue, 09 Mar 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/68722/</link></item><item><title>Three Sample reports for the Automated DBA: Space Usage SnapShotter</title><description><![CDATA[<p>1100 largest indexes by total buffer cache usage; 100 largest tables by total reserved pages; Largest tables in each database with running total of space usage and growth since last snapshot</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Administration/67437/</guid><pubDate>Mon, 13 Jul 2009 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Administration/67437/</link></item><item><title>Median Workbench</title><description><![CDATA[<p>SQL Server database engine doesn't have a MEDIAN() aggregate function. This is probably because there are several types of median, such as statistical, financial or vector medians. Calculating Medians are essentially a row-positioning task, since medians are the middle value of an ordered result. Easy to do in SQL? Nope. Joe Celko explains why.</p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/66744/</guid><pubDate>Wed, 06 May 2009 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/66744/</link></item><item><title>SUM of FLOAT inconsistency</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/64521/</guid><pubDate>Mon, 13 Oct 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/64521/</link></item><item><title>Accessing and changing data 2008</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/questions/T-SQL/64301/</guid><pubDate>Tue, 23 Sep 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/64301/</link></item><item><title>Summarizing Data with Aggregate Queries - SQL School Video</title><description><![CDATA[<p>Learn how to summarize the values of your data using aggregate functions such as COUNT(), SUM(), and AVG() from MVP Kathi Kellenberger. Grouping and aggregate filters are covered as well.</p>]]></description><guid>http://www.sqlservercentral.com/articles/Video/63815/</guid><pubDate>Thu, 28 Aug 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/Video/63815/</link></item><item><title>Calculating Mathematical Values in SQL Server</title><description><![CDATA[<p>In our application we have the need to perform mathematical calculations.  Right now we are doing so in our front end application.  Unfortunately we are starting to experience performance problems with large data sets and differences in calculations due to developers using different logic.  We are seeking some other options to perform the calculations.  Does SQL Server perform basic mathematical calculations?</p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/63898/</guid><pubDate>Thu, 07 Aug 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63898/</link></item><item><title>Windowed Aggregate functions</title><description><![CDATA[<p></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/questions/T-SQL/63214/</guid><pubDate>Fri, 27 Jun 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/questions/T-SQL/63214/</link></item><item><title>Aggregating Correlated Sub-Queries</title><description><![CDATA[<p>Every now and then you may attempt to calculate an aggregate function -- such as SUM() -- on a correlated subquery, only to encounter the following error:</p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/61383/</guid><pubDate>Mon, 29 Oct 2007 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/61383/</link></item></channel></rss>