<?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: Pivot dynamic data with pipelined function</title>
	<atom:link href="http://technology.amis.nl/blog/1197/pivot-dynamic-data/feed" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data</link>
	<description>Weblog for the AMIS Technology corner</description>
	<lastBuildDate>Sat, 07 Aug 2010 07:40:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Judy</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-347894</link>
		<dc:creator>Judy</dc:creator>
		<pubDate>Tue, 23 Dec 2008 14:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-347894</guid>
		<description>Really useful piece of code:
But in the precise usage I have for it, it  is failing! for example

&quot;Select count(*) from Table( pivot (&#039;select compound, method,RESULT from
ALLRES_XXXX_VIEW3 where
resultname = &#039;&#039;EC50&#039;&#039;&#039;))&quot;

ERROR at line 1:
ORA-00902: invalid datatype.

If works fine if &#039;method&#039; is not used as the pivoting element ( the column heading). Method is a concatentated string coming from another view. Is the concatenation the problem? Do I need to materialiase my views?

Judy</description>
		<content:encoded><![CDATA[<p>Really useful piece of code:<br />
But in the precise usage I have for it, it  is failing! for example</p>
<p>&#8220;Select count(*) from Table( pivot (&#8217;select compound, method,RESULT from<br />
ALLRES_XXXX_VIEW3 where<br />
resultname = &#8221;EC50&#8221;&#8217;))&#8221;</p>
<p>ERROR at line 1:<br />
ORA-00902: invalid datatype.</p>
<p>If works fine if &#8216;method&#8217; is not used as the pivoting element ( the column heading). Method is a concatentated string coming from another view. Is the concatenation the problem? Do I need to materialiase my views?</p>
<p>Judy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anton</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-328800</link>
		<dc:creator>anton</dc:creator>
		<pubDate>Thu, 19 Jun 2008 13:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-328800</guid>
		<description>ODCITableDescribe is only called when your SQL-statement (pivotimpl.show) is not in the SGA. The different aurgument makes the SQL-statement different, ODCITableDescribe is called and the number of columns in the output can change.</description>
		<content:encoded><![CDATA[<p>ODCITableDescribe is only called when your SQL-statement (pivotimpl.show) is not in the SGA. The different aurgument makes the SQL-statement different, ODCITableDescribe is called and the number of columns in the output can change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-294478</link>
		<dc:creator>Hari</dc:creator>
		<pubDate>Fri, 29 Feb 2008 17:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-294478</guid>
		<description>Hi 
For the function pivotimpl.show( 8 ), pivotimpl.show( 7 ) what does this argument do? I see its returning a dummy number but the columns and results change based on the argument you are passing. Can anyone explain me this.</description>
		<content:encoded><![CDATA[<p>Hi<br />
For the function pivotimpl.show( 8 ), pivotimpl.show( 7 ) what does this argument do? I see its returning a dummy number but the columns and results change based on the argument you are passing. Can anyone explain me this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-85056</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Thu, 27 Jul 2006 07:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-85056</guid>
		<description>I know of reason why it would not work on 9i. However, I have not tested it. Testing it would be little effort for you if you have a 9i database at your disposal - please let us know the outcome of that test.

best regards,

Lucas</description>
		<content:encoded><![CDATA[<p>I know of reason why it would not work on 9i. However, I have not tested it. Testing it would be little effort for you if you have a 9i database at your disposal &#8211; please let us know the outcome of that test.</p>
<p>best regards,</p>
<p>Lucas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarun Sharma</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-84773</link>
		<dc:creator>Tarun Sharma</dc:creator>
		<pubDate>Wed, 26 Jul 2006 08:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-84773</guid>
		<description>Does it work on Oracle 9i?</description>
		<content:encoded><![CDATA[<p>Does it work on Oracle 9i?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeMM</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-79568</link>
		<dc:creator>MikeMM</dc:creator>
		<pubDate>Mon, 10 Jul 2006 08:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-79568</guid>
		<description>I agree with Mr. Ed and in accounting departments, reports are always presented that way. The number of colums is dynamic. Though this can be done using Oracle Reports Builder, a handy query like this is a good alternative since you can&#039;t always use reports to show your data. 

My question is, does pipelined function work with 9i? I looked at pivot.sql and it noticed there&#039;s quite a number of lines required to make this thing work. But anyhow, this is an amazing stuff!</description>
		<content:encoded><![CDATA[<p>I agree with Mr. Ed and in accounting departments, reports are always presented that way. The number of colums is dynamic. Though this can be done using Oracle Reports Builder, a handy query like this is a good alternative since you can&#8217;t always use reports to show your data. </p>
<p>My question is, does pipelined function work with 9i? I looked at pivot.sql and it noticed there&#8217;s quite a number of lines required to make this thing work. But anyhow, this is an amazing stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LewisC</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-67458</link>
		<dc:creator>LewisC</dc:creator>
		<pubDate>Fri, 02 Jun 2006 22:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-67458</guid>
		<description>Niice entry!  I finally got the time to read this completely and I can immediately find uses for this in the DW.    Now I have to do some performance testing.

LewisC</description>
		<content:encoded><![CDATA[<p>Niice entry!  I finally got the time to read this completely and I can immediately find uses for this in the DW.    Now I have to do some performance testing.</p>
<p>LewisC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. Ed</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-58219</link>
		<dc:creator>Mr. Ed</dc:creator>
		<pubDate>Wed, 17 May 2006 01:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-58219</guid>
		<description>Why pivot?  Because this:


             Jan       Feb         Mar
US           $100      $300        $500
Austria      $130      $80         $110
Mexico       $200      $250        $400


Looks a lot better (easier to read, more intuitive) than this:


(US,Jan,$100)
(US,Feb,$300)
(US,Mar,$500)
(Austria,Jan,$130)
(Austria,Feb,$80)
(Austria,Mar,$110)
(Mexico,Jan,$200)
(Mexico,Feb,$250)
(Mexico,Mar,$400)


2-dimensional data just looks better in this simple format.

Some part has to do the pivot.  In many cases, it&#039;s most convenient in the database layer.</description>
		<content:encoded><![CDATA[<p>Why pivot?  Because this:</p>
<p>             Jan       Feb         Mar<br />
US           $100      $300        $500<br />
Austria      $130      $80         $110<br />
Mexico       $200      $250        $400</p>
<p>Looks a lot better (easier to read, more intuitive) than this:</p>
<p>(US,Jan,$100)<br />
(US,Feb,$300)<br />
(US,Mar,$500)<br />
(Austria,Jan,$130)<br />
(Austria,Feb,$80)<br />
(Austria,Mar,$110)<br />
(Mexico,Jan,$200)<br />
(Mexico,Feb,$250)<br />
(Mexico,Mar,$400)</p>
<p>2-dimensional data just looks better in this simple format.</p>
<p>Some part has to do the pivot.  In many cases, it&#8217;s most convenient in the database layer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/blog/1197/pivot-dynamic-data/comment-page-1#comment-58067</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Tue, 16 May 2006 16:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1197#comment-58067</guid>
		<description>Anton, like they said on OTN, this is really amazing stuff. Cool! 

Note: I got it to work on 10gR2, but not on 10gR1 (10.1.0.2)</description>
		<content:encoded><![CDATA[<p>Anton, like they said on OTN, this is really amazing stuff. Cool! </p>
<p>Note: I got it to work on 10gR2, but not on 10gR1 (10.1.0.2)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
