<?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: SQL Puzzle: SQL Advance Query &#8211; Display Year and Month data With or Without PIVOT	</title>
	<atom:link href="https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-display-year-and-month-data-with-or-without-pivot/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-display-year-and-month-data-with-or-without-pivot/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 07 Nov 2017 06:42:25 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Dinesh.IS		</title>
		<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-display-year-and-month-data-with-or-without-pivot/#comment-5988</link>

		<dc:creator><![CDATA[Dinesh.IS]]></dc:creator>
		<pubDate>Tue, 07 Nov 2017 06:42:25 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5893#comment-5988</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-display-year-and-month-data-with-or-without-pivot/#comment-5974&quot;&gt;Shamanth&lt;/a&gt;.

Good   try to solve all puzzles in different method.....]]></description>
			<content:encoded><![CDATA[<p>Good   try to solve all puzzles in different method&#8230;..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shamanth		</title>
		<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-display-year-and-month-data-with-or-without-pivot/#comment-5974</link>

		<dc:creator><![CDATA[Shamanth]]></dc:creator>
		<pubDate>Tue, 31 Oct 2017 08:02:12 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5893#comment-5974</guid>

					<description><![CDATA[Create table test
(
 YearData Int,
 MonthData Varchar(10),
 Amount Int
)

Insert Into Test
select 2016,&#039;Jan&#039;,10000
Union All
Select 2016,&#039;Feb&#039;,15000
Union All
Select 2016,&#039;Mar&#039;,13000
Union All
Select 2017,&#039;Jan&#039;,17000

Select * From Test
Pivot(Sum(Amount) For MonthData In ([Jan], [Feb], [Mar])) As Result;]]></description>
			<content:encoded><![CDATA[<p>Create table test<br />
(<br />
 YearData Int,<br />
 MonthData Varchar(10),<br />
 Amount Int<br />
)</p>
<p>Insert Into Test<br />
select 2016,&#8217;Jan&#8217;,10000<br />
Union All<br />
Select 2016,&#8217;Feb&#8217;,15000<br />
Union All<br />
Select 2016,&#8217;Mar&#8217;,13000<br />
Union All<br />
Select 2017,&#8217;Jan&#8217;,17000</p>
<p>Select * From Test<br />
Pivot(Sum(Amount) For MonthData In ([Jan], [Feb], [Mar])) As Result;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
