<?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>SQL on Bitfern</title>
    <link>/categories/sql/</link>
    <description>Recent content in SQL on Bitfern</description>
    <generator>Hugo</generator>
    <language>en-nz</language>
    <lastBuildDate>Mon, 27 Jan 2014 09:27:04 +0000</lastBuildDate>
    <atom:link href="/categories/sql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Add column to SSRS Excel export</title>
      <link>/blog/add-column-to-ssrs-excel-export/</link>
      <pubDate>Mon, 27 Jan 2014 09:27:04 +0000</pubDate>
      <guid>/blog/add-column-to-ssrs-excel-export/</guid>
      <description>&lt;p&gt;A situation arose today where the key fields for an SSRS report just fitted into an A4 landscape page, but additional fields would be useful when exporting to Excel or CSV. Others seem to have had the same requirement and suggest setting the column visibility depending upon the render format. The suggestion works nicely once tweaked to cater for newer versions of Excel!&lt;/p&gt;
&lt;p&gt;Right click on the column and change the column visibility to “Show or hide based on an expression”:&lt;/p&gt;</description>
    </item>
    <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>
