﻿<?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 Aggregates</title><link>http://www.sqlservercentral.com/</link><description>Articles tagged Aggregates posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><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>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>]]></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>Cumulative Aggregates in SQL Server Reporting Services</title><description><![CDATA[<p>In this tip, we will see how to build a report which shows the cumulative sales amount for the current month, current quarter (QTD) and current year (YTD) in a single crosstab (tablix) report, which makes it easy to compare the data.</p><!-- version control now (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/version-control-now?utm_source=ssc&utm_medium=pubad&utm_content=version_control_now&utm_campaign=sqlsourcecontrol&utm_term=rss-20229"><img src="http://assets.red-gate.com/external/SSC/srccon68x68.gif" alt="sqlsourcecontrol"></td>   <td><strong>Get your SQL Server database under version control now!</strong><br />Version control is standard for applications, but databases haven’t caught up. So how can you bring database development up to speed? Why should you start?  <a href="http://www.red-gate.com/products/sql-development/sql-source-control/entrypage/version-control-now?utm_source=ssc&utm_medium=pubad&utm_content=version_control_now&utm_campaign=sqlsourcecontrol&utm_term=rss-20229">Find out…</a></td>  </tr> </tbody></table>
]]></description><guid>http://www.sqlservercentral.com/redirect/articles/87980/</guid><pubDate>Fri, 27 Jan 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/87980/</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>A genuine use for a SQL CLR Aggregate</title><description><![CDATA[<p>When should you use a SQL CLR Aggregate? Lots of people have struggled with this one, but David Poole found a use, and has some interesting performance data analysis as well.</p>]]></description><guid>http://www.sqlservercentral.com/articles/SQLCLR/71942/</guid><pubDate>Wed, 29 Dec 2010 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/articles/SQLCLR/71942/</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><!-- 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/delivery/deployment-manager/?utm_source=ssc&utm_medium=pubad&utm_content=howto_automate&utm_campaign=deploymentmanager&utm_term=rss-20228"><img src="http://assets.red-gate.com/external/SSC/deployment-manager-68x68.png" alt="Deployment Manager"></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/delivery/deployment-manager/?utm_source=ssc&utm_medium=pubad&utm_content=howto_automate&utm_campaign=deploymentmanager&utm_term=rss-20228">Start deploying with a 28-day trial.</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>Pivoting, Unpivoting and Aggregating</title><description><![CDATA[<p>We asked Phil Factor to write a nice simple quick-start guide about aggregation, pivoting and un-pivoting techniques. To do so, he takes us all the way from getting the data from a published source, transferring it to SQL Server, un-pivoting it, storing it in a relational table, aggregating it and finally pivoting the data in a variety of ways.</p>]]></description><guid>http://www.sqlservercentral.com/redirect/articles/68782/</guid><pubDate>Wed, 18 Nov 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/redirect/articles/68782/</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>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>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>