<?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: Oracle 11g: New Pivot Table Feature</title>
	<atom:link href="http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Dynamic subquery in Pivot Query - dBforums</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-478415</link>
		<dc:creator>Dynamic subquery in Pivot Query - dBforums</dc:creator>
		<pubDate>Fri, 26 Nov 2010 21:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-478415</guid>
		<description>[...] We have someone who needs to do something like this. Right now the plan is to create some dynamic SQL. You may find this page useful. Oracle 11g: New Pivot Table Feature &#124; The Pythian Blog [...]</description>
		<content:encoded><![CDATA[<p>[...] We have someone who needs to do something like this. Right now the plan is to create some dynamic SQL. You may find this page useful. Oracle 11g: New Pivot Table Feature | The Pythian Blog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manan Sanghvi</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-364018</link>
		<dc:creator>Manan Sanghvi</dc:creator>
		<pubDate>Thu, 25 Jun 2009 21:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-364018</guid>
		<description>Hey,
I am using the Oracle Warehouse Builder 11G. I am having an issue with the pivot operator. IN my source database I have a table with around 200 columns, each having say 1000 rows. Now I want to make each of the column into multiple rows by pivoting it. IN the pivot operator provided I have to type in the name of the columns manually which is not feasible for such big tables. Any one have any suggestions??</description>
		<content:encoded><![CDATA[<p>Hey,<br />
I am using the Oracle Warehouse Builder 11G. I am having an issue with the pivot operator. IN my source database I have a table with around 200 columns, each having say 1000 rows. Now I want to make each of the column into multiple rows by pivoting it. IN the pivot operator provided I have to type in the name of the columns manually which is not feasible for such big tables. Any one have any suggestions??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-315805</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 17 Dec 2008 15:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-315805</guid>
		<description>I&#039;m currently writing some code that requires a pivot table.  All I need to do is generate an output file with the pivoted data, and I&#039;m doing it using SQL*Plus.  In this case, I&#039;m just going to generate the IN list using SQL-generating-SQL.  I&#039;ve got a variable list of values from 120-140 values going across the columns, so I can&#039;t make it static.  The SQL-generating-SQL technique works fine for this case.  Even if I was writing a C/C++ program, I&#039;d still use dynamic SQL for this and allocate my return buffers in a variable sized array.  I personally don&#039;t see this as a huge limitation of the pivot table feature in 11g.  Relying on XML to make the columns variable was probably a good decision on Oracle&#039;s part.  XML gives you an overall structure to handle the returning data rather than using an array like I would do.  My approach works, but it&#039;s probably a little old-school.  Using XML is more forward-thinking if you ask me.</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently writing some code that requires a pivot table.  All I need to do is generate an output file with the pivoted data, and I&#8217;m doing it using SQL*Plus.  In this case, I&#8217;m just going to generate the IN list using SQL-generating-SQL.  I&#8217;ve got a variable list of values from 120-140 values going across the columns, so I can&#8217;t make it static.  The SQL-generating-SQL technique works fine for this case.  Even if I was writing a C/C++ program, I&#8217;d still use dynamic SQL for this and allocate my return buffers in a variable sized array.  I personally don&#8217;t see this as a huge limitation of the pivot table feature in 11g.  Relying on XML to make the columns variable was probably a good decision on Oracle&#8217;s part.  XML gives you an overall structure to handle the returning data rather than using an array like I would do.  My approach works, but it&#8217;s probably a little old-school.  Using XML is more forward-thinking if you ask me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MARTIN</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-304336</link>
		<dc:creator>MARTIN</dc:creator>
		<pubDate>Tue, 25 Nov 2008 11:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-304336</guid>
		<description>Hello, Can anyone help me? Ive been trying a simple pivot byt just cant get it to work.

* i need the below select statement to have an output as below:
SELECT BGROUP, REFNO, SEQNO, PP02D, PP05P 
FROM  PRESERVED_PENSIONER_HISTORY
WHERE REFNO IN (&#039;0084941&#039;,&#039;0079500&#039;,
&#039;0082833&#039;,&#039;0094388&#039;,&#039;0063814&#039;,&#039;0081368&#039;)

*OUTPUT

REFNO      DATE1(PP02D) DATE2(PP02D) 
0084941    PP05P        PP05P
0079500    PP05P        PP05P
0082833    PP05P        PP05P

There are many values for both values PP02D and PP05P.
Any help will be appreciated.</description>
		<content:encoded><![CDATA[<p>Hello, Can anyone help me? Ive been trying a simple pivot byt just cant get it to work.</p>
<p>* i need the below select statement to have an output as below:<br />
SELECT BGROUP, REFNO, SEQNO, PP02D, PP05P<br />
FROM  PRESERVED_PENSIONER_HISTORY<br />
WHERE REFNO IN (&#8217;0084941&#8242;,&#8217;0079500&#8242;,<br />
&#8217;0082833&#8242;,&#8217;0094388&#8242;,&#8217;0063814&#8242;,&#8217;0081368&#8242;)</p>
<p>*OUTPUT</p>
<p>REFNO      DATE1(PP02D) DATE2(PP02D)<br />
0084941    PP05P        PP05P<br />
0079500    PP05P        PP05P<br />
0082833    PP05P        PP05P</p>
<p>There are many values for both values PP02D and PP05P.<br />
Any help will be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathew</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-183363</link>
		<dc:creator>Mathew</dc:creator>
		<pubDate>Wed, 23 Apr 2008 04:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-183363</guid>
		<description>excelent functionality but the usage is very limited with the restriction of  variable value in the pivot section.I dont know why the Orcale more concentrated with XML intsted of providing the functionality in the base noraml SQL.</description>
		<content:encoded><![CDATA[<p>excelent functionality but the usage is very limited with the restriction of  variable value in the pivot section.I dont know why the Orcale more concentrated with XML intsted of providing the functionality in the base noraml SQL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pythian Group Blog &#187; Blog Archive &#187; Log Buffer #66: a Carnival of the Vanities for DBAs</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-111915</link>
		<dc:creator>Pythian Group Blog &#187; Blog Archive &#187; Log Buffer #66: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 12 Oct 2007 16:38:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-111915</guid>
		<description>[...] difference between count(*) and count(1). Also here at home, Robert Hamel gives a bad rating to 11g&#8217;s new pivot table feature. &#8220;I was very pleased when I heard about Oracle adding pivot functionality in select [...]</description>
		<content:encoded><![CDATA[<p>[...] difference between count(*) and count(1). Also here at home, Robert Hamel gives a bad rating to 11g&#8217;s new pivot table feature. &#8220;I was very pleased when I heard about Oracle adding pivot functionality in select [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ghassan</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-111770</link>
		<dc:creator>ghassan</dc:creator>
		<pubDate>Fri, 12 Oct 2007 08:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-111770</guid>
		<description>Robert,
Doing what you want will not be easy, not only for Oracle, but for the clients: Supporting the sub-query and ANY without XML implies that CBO not only parses the SQL, but also executes the sub-query (or the query if you use ANY) in order to find out how many columns this query returns (it has to know in order to tell the &#039;client&#039; programs how many columns there are so that they allocate the buffers, ....). A way out would be to augment the SQL with the MAX number of columns the user expects, but this puts much burden on the user, and the system will have to decide what to do in case of ANY surpassing this MAX.</description>
		<content:encoded><![CDATA[<p>Robert,<br />
Doing what you want will not be easy, not only for Oracle, but for the clients: Supporting the sub-query and ANY without XML implies that CBO not only parses the SQL, but also executes the sub-query (or the query if you use ANY) in order to find out how many columns this query returns (it has to know in order to tell the &#8216;client&#8217; programs how many columns there are so that they allocate the buffers, &#8230;.). A way out would be to augment the SQL with the MAX number of columns the user expects, but this puts much burden on the user, and the system will have to decide what to do in case of ANY surpassing this MAX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. Ed</title>
		<link>http://www.pythian.com/news/612/oracle-11g-new-pivot-table-feature/#comment-111376</link>
		<dc:creator>Mr. Ed</dc:creator>
		<pubDate>Thu, 11 Oct 2007 07:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/612/oracle-11g-new-pivot-table-feature#comment-111376</guid>
		<description>2 out of 10.  At this rate, it won&#039;t work properly until Oracle 13g Release 1.</description>
		<content:encoded><![CDATA[<p>2 out of 10.  At this rate, it won&#8217;t work properly until Oracle 13g Release 1.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

