<?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/"
		>
<channel>
	<title>Comments on: FOR XML EXPLICIT</title>
	<atom:link href="http://www.hedgate.net/articles/2006/10/09/for-xml-explicit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hedgate.net/articles/2006/10/09/for-xml-explicit/</link>
	<description>Contextual Chameleon</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:18:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: mlevitt</title>
		<link>http://www.hedgate.net/articles/2006/10/09/for-xml-explicit/comment-page-1/#comment-6864</link>
		<dc:creator>mlevitt</dc:creator>
		<pubDate>Sat, 06 Mar 2010 01:55:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-6864</guid>
		<description>Chris, &lt;br&gt;&lt;br&gt;I need your help, Please!&lt;br&gt;I have this data in a table&lt;br&gt;&lt;br&gt;grp ledger amount&lt;br&gt;1    A01    5&lt;br&gt;1    A02    3&lt;br&gt;1    A03    4&lt;br&gt;2    A22    8&lt;br&gt;3    A33    3&lt;br&gt;3    A36    4&lt;br&gt;&lt;br&gt;I need to sum the amounts grouping by grp&lt;br&gt;I also need to concatenate the ledgers by grp&lt;br&gt;The result needs to look like this. How do I do this without a cursor or loop on a Sql2000 server.  I&#039;ve tried to make sense of FOR XML but I&#039;m not getting it.  Also, I&#039;m not sure if I even have to use it.&lt;br&gt;&lt;br&gt;grp amt ledger&lt;br&gt;1    12   A01, A02, A03&lt;br&gt;2    8    A22&lt;br&gt;3    7    A33, A36</description>
		<content:encoded><![CDATA[<p>Chris, </p>
<p>I need your help, Please!<br />I have this data in a table</p>
<p>grp ledger amount<br />1    A01    5<br />1    A02    3<br />1    A03    4<br />2    A22    8<br />3    A33    3<br />3    A36    4</p>
<p>I need to sum the amounts grouping by grp<br />I also need to concatenate the ledgers by grp<br />The result needs to look like this. How do I do this without a cursor or loop on a Sql2000 server.  I&#39;ve tried to make sense of FOR XML but I&#39;m not getting it.  Also, I&#39;m not sure if I even have to use it.</p>
<p>grp amt ledger<br />1    12   A01, A02, A03<br />2    8    A22<br />3    7    A33, A36</p>
]]></content:encoded>
	</item>
</channel>
</rss>

