<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>FOR XML on Bitfern</title>
    <link>/tags/for-xml/</link>
    <description>Recent content in FOR XML on Bitfern</description>
    <generator>Hugo</generator>
    <language>en-nz</language>
    <lastBuildDate>Sun, 05 Jan 2014 04:55:51 +0000</lastBuildDate>
    <atom:link href="/tags/for-xml/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Twelfth Day of Christmas</title>
      <link>/blog/twelfth-day-of-christmas/</link>
      <pubDate>Sun, 05 Jan 2014 04:55:51 +0000</pubDate>
      <guid>/blog/twelfth-day-of-christmas/</guid>
      <description>&lt;p&gt;A festive post for the &lt;!-- raw HTML omitted --&gt;twelfth day of Christmas&lt;!-- raw HTML omitted --&gt; and one way to avoid taking the decorations down for a while longer!&lt;/p&gt;
&lt;p&gt;If you have each gift from the “Twelve days of Christmas” song as an individual record in a SQL Server database table, can you write a query that returns one row for each verse of the song?&lt;/p&gt;
&lt;p&gt;Yes you can. This problem is similar to other cases where you need to flatten multiple rows into a single string. In this case for &lt;em&gt;each day&lt;/em&gt; we want a comma separated list of the gifts for that day &lt;em&gt;and all preceding days&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
