<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Introduction to Aggregate Functions</title>
	<atom:link href="http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:40:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Subbu</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-222468</link>
		<dc:creator><![CDATA[Subbu]]></dc:creator>
		<pubDate>Wed, 21 Dec 2011 00:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-222468</guid>
		<description><![CDATA[Hi,

please explain Checksum_AGG() function and where exactly we are going to use.

Thanks
Subbu]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>please explain Checksum_AGG() function and where exactly we are going to use.</p>
<p>Thanks<br />
Subbu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-215263</link>
		<dc:creator><![CDATA[Krishna]]></dc:creator>
		<pubDate>Sun, 11 Dec 2011 07:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-215263</guid>
		<description><![CDATA[Hello sir,

How to create the width_bucket function in sql server 2005.

Could you please give me the syntax with example

Regards
Krishna]]></description>
		<content:encoded><![CDATA[<p>Hello sir,</p>
<p>How to create the width_bucket function in sql server 2005.</p>
<p>Could you please give me the syntax with example</p>
<p>Regards<br />
Krishna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biberon</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-133065</link>
		<dc:creator><![CDATA[Biberon]]></dc:creator>
		<pubDate>Thu, 05 May 2011 14:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-133065</guid>
		<description><![CDATA[please delete this i posted accidentaly

PS: thanks for a great site ;)]]></description>
		<content:encoded><![CDATA[<p>please delete this i posted accidentaly</p>
<p>PS: thanks for a great site ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shravan yadav</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-126451</link>
		<dc:creator><![CDATA[shravan yadav]]></dc:creator>
		<pubDate>Mon, 04 Apr 2011 04:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-126451</guid>
		<description><![CDATA[PLEASE  GIVE  happychhabra  QUESTION ANSWER IF  ANY ONE  CAN  ON MY EMAIL  ALSO]]></description>
		<content:encoded><![CDATA[<p>PLEASE  GIVE  happychhabra  QUESTION ANSWER IF  ANY ONE  CAN  ON MY EMAIL  ALSO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106317</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 17 Dec 2010 15:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106317</guid>
		<description><![CDATA[Make use of the methods described here
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx]]></description>
		<content:encoded><![CDATA[<p>Make use of the methods described here<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106314</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 17 Dec 2010 15:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106314</guid>
		<description><![CDATA[Search for them in SQL Server help file]]></description>
		<content:encoded><![CDATA[<p>Search for them in SQL Server help file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106311</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 17 Dec 2010 15:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106311</guid>
		<description><![CDATA[Ordering doesn&#039;t matter as long as you use ORDER BY Clause in the SELECT statement]]></description>
		<content:encoded><![CDATA[<p>Ordering doesn&#8217;t matter as long as you use ORDER BY Clause in the SELECT statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106069</link>
		<dc:creator><![CDATA[Keith]]></dc:creator>
		<pubDate>Thu, 16 Dec 2010 08:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-106069</guid>
		<description><![CDATA[Did you ever try to look the above right side of the blog?
Are you dumb?]]></description>
		<content:encoded><![CDATA[<p>Did you ever try to look the above right side of the blog?<br />
Are you dumb?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baghul</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-94448</link>
		<dc:creator><![CDATA[Baghul]]></dc:creator>
		<pubDate>Wed, 20 Oct 2010 14:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-94448</guid>
		<description><![CDATA[If I understand correctly, you are trying to sum multiple columns at the same time, right?

Here is a query from Northwind database that shows it is possible to do that:

select 
SUM(productid) as sum1
,SUM(unitprice) as sum2
from dbo.[Order Details]]]></description>
		<content:encoded><![CDATA[<p>If I understand correctly, you are trying to sum multiple columns at the same time, right?</p>
<p>Here is a query from Northwind database that shows it is possible to do that:</p>
<p>select<br />
SUM(productid) as sum1<br />
,SUM(unitprice) as sum2<br />
from dbo.[Order Details]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: happychhabra</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-93967</link>
		<dc:creator><![CDATA[happychhabra]]></dc:creator>
		<pubDate>Mon, 18 Oct 2010 06:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-93967</guid>
		<description><![CDATA[hello sir

             i have a table salary
sal_salary int
sal_id int
sal_fund int
):


sal_salary
14000
12000
11000
9000
16000
18000
20,000
22,000
15000
12000
total 400 records in sal_salary column


if i want to sum full column used to 
 
select sum(sal_salary) from salary

if  i want to sum 200 to 300 column

then i dont know about answer this question]]></description>
		<content:encoded><![CDATA[<p>hello sir</p>
<p>             i have a table salary<br />
sal_salary int<br />
sal_id int<br />
sal_fund int<br />
):</p>
<p>sal_salary<br />
14000<br />
12000<br />
11000<br />
9000<br />
16000<br />
18000<br />
20,000<br />
22,000<br />
15000<br />
12000<br />
total 400 records in sal_salary column</p>
<p>if i want to sum full column used to </p>
<p>select sum(sal_salary) from salary</p>
<p>if  i want to sum 200 to 300 column</p>
<p>then i dont know about answer this question</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaushal</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-89687</link>
		<dc:creator><![CDATA[Kaushal]]></dc:creator>
		<pubDate>Mon, 27 Sep 2010 07:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-89687</guid>
		<description><![CDATA[Hi Pinal!

I read almost all the post about how to find the Nth largest salary from a table. I want to create a function that takes two parameters
1. column name.
2. value of &quot;n&quot;.
and this return the nth highest salary. I googled it like a million and a half times but I reached nowhere.

I think this can be done using Aggregate functions. i want to know how to create aggregate function?? please help me out.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal!</p>
<p>I read almost all the post about how to find the Nth largest salary from a table. I want to create a function that takes two parameters<br />
1. column name.<br />
2. value of &#8220;n&#8221;.<br />
and this return the nth highest salary. I googled it like a million and a half times but I reached nowhere.</p>
<p>I think this can be done using Aggregate functions. i want to know how to create aggregate function?? please help me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swathi</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-86434</link>
		<dc:creator><![CDATA[swathi]]></dc:creator>
		<pubDate>Fri, 03 Sep 2010 07:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-86434</guid>
		<description><![CDATA[How to Get alerts for pinal new posted articles.]]></description>
		<content:encoded><![CDATA[<p>How to Get alerts for pinal new posted articles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niaz</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-64874</link>
		<dc:creator><![CDATA[Niaz]]></dc:creator>
		<pubDate>Fri, 09 Apr 2010 05:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-64874</guid>
		<description><![CDATA[thanks for hark backing the whole sql server.]]></description>
		<content:encoded><![CDATA[<p>thanks for hark backing the whole sql server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-63983</link>
		<dc:creator><![CDATA[Raj]]></dc:creator>
		<pubDate>Mon, 29 Mar 2010 23:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-63983</guid>
		<description><![CDATA[Hi Pinal

Is there any way to list all the &quot;System Funtions&quot; from DB.
like min,max,round,Floor.... etc.

possible please send me the queries and syntax

Thanks a lot
Raj]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>Is there any way to list all the &#8220;System Funtions&#8221; from DB.<br />
like min,max,round,Floor&#8230;. etc.</p>
<p>possible please send me the queries and syntax</p>
<p>Thanks a lot<br />
Raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prabhu</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-53608</link>
		<dc:creator><![CDATA[prabhu]]></dc:creator>
		<pubDate>Fri, 10 Jul 2009 12:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-53608</guid>
		<description><![CDATA[Hi Pinal,

Your site is so great that i who was a person not interested in SQL have become keenly interested in SQL.

Hats off Man]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Your site is so great that i who was a person not interested in SQL have become keenly interested in SQL.</p>
<p>Hats off Man</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 8 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-47488</link>
		<dc:creator><![CDATA[SQL SERVER - 2008 - Interview Questions and Answers - Part 8 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-47488</guid>
		<description><![CDATA[[...] MIN, CHECKSUM_AGG, SUM, COUNT, STDEV, COUNT_BIG, STDEVP, GROUPING, VAR, MAX, VARP (Read More Here [...]]]></description>
		<content:encoded><![CDATA[<p>[...] MIN, CHECKSUM_AGG, SUM, COUNT, STDEV, COUNT_BIG, STDEVP, GROUPING, VAR, MAX, VARP (Read More Here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sazz</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-43675</link>
		<dc:creator><![CDATA[Sazz]]></dc:creator>
		<pubDate>Mon, 13 Oct 2008 18:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-43675</guid>
		<description><![CDATA[Hi all,

I have a small query regarding the usage of Aggregate functions with Union or Union All command. It would be great if som1 can help me out.

SELECT TYPE, DATEDIFF(HH,CREATE_DATE,END_DATE) AS DURATION
FROM TABLE1 
WHERE TAG IN (&#039;A&#039;,&#039;B&#039;,&#039;F&#039;,&#039;X&#039;)

UNION ALL

SELECT TYPE, DATEDIFF(HH,CREATE_DATE,END_DATE) AS DURATION
FROM TABLE2
WHERE TAG IN (&#039;C&#039;,&#039;J&#039;)

Using the above code I am able to get the results from both the tables but I want the AVERAGE of the DURATION from the result set for a particular TYPE.]]></description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I have a small query regarding the usage of Aggregate functions with Union or Union All command. It would be great if som1 can help me out.</p>
<p>SELECT TYPE, DATEDIFF(HH,CREATE_DATE,END_DATE) AS DURATION<br />
FROM TABLE1<br />
WHERE TAG IN (&#8216;A&#8217;,'B&#8217;,'F&#8217;,'X&#8217;)</p>
<p>UNION ALL</p>
<p>SELECT TYPE, DATEDIFF(HH,CREATE_DATE,END_DATE) AS DURATION<br />
FROM TABLE2<br />
WHERE TAG IN (&#8216;C&#8217;,'J&#8217;)</p>
<p>Using the above code I am able to get the results from both the tables but I want the AVERAGE of the DURATION from the result set for a particular TYPE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: basky</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-43056</link>
		<dc:creator><![CDATA[basky]]></dc:creator>
		<pubDate>Sat, 20 Sep 2008 09:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-43056</guid>
		<description><![CDATA[select * from user

name    age
ajay      25
sad       35

now i need to inserting data to before max age 35]]></description>
		<content:encoded><![CDATA[<p>select * from user</p>
<p>name    age<br />
ajay      25<br />
sad       35</p>
<p>now i need to inserting data to before max age 35</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: basky</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-43053</link>
		<dc:creator><![CDATA[basky]]></dc:creator>
		<pubDate>Sat, 20 Sep 2008 09:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-43053</guid>
		<description><![CDATA[if i want insert data to store before last data in a table
how can u explain]]></description>
		<content:encoded><![CDATA[<p>if i want insert data to store before last data in a table<br />
how can u explain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faisal Ahmed</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-33187</link>
		<dc:creator><![CDATA[Faisal Ahmed]]></dc:creator>
		<pubDate>Tue, 22 Jan 2008 10:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-33187</guid>
		<description><![CDATA[Dear Pinal ,

U have made a good platform..



Regards
Faisal ahmed Qureshi

MES
Mumbai]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal ,</p>
<p>U have made a good platform..</p>
<p>Regards<br />
Faisal ahmed Qureshi</p>
<p>MES<br />
Mumbai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rana</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-33178</link>
		<dc:creator><![CDATA[Rana]]></dc:creator>
		<pubDate>Tue, 22 Jan 2008 05:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-33178</guid>
		<description><![CDATA[Dear Pinal,

Keep it up, I am receiving alerts for your new posted articles.

It is helping me to update myself on daily basis.

Keep it up.

God Bless you.

Rana]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal,</p>
<p>Keep it up, I am receiving alerts for your new posted articles.</p>
<p>It is helping me to update myself on daily basis.</p>
<p>Keep it up.</p>
<p>God Bless you.</p>
<p>Rana</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Introduction to Statistical Functions - VAR, STDEVP, STDEV, VARP Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-33153</link>
		<dc:creator><![CDATA[SQL SERVER - Introduction to Statistical Functions - VAR, STDEVP, STDEV, VARP Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Mon, 21 Jan 2008 12:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/#comment-33153</guid>
		<description><![CDATA[[...] 20, 2008 by pinaldave    Yesterday I wrote article about SQL SERVER - Introduction to Aggregate Functions. I received one email that four of the aggregate functions are statistical function and I should [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 20, 2008 by pinaldave    Yesterday I wrote article about SQL SERVER &#8211; Introduction to Aggregate Functions. I received one email that four of the aggregate functions are statistical function and I should [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

