<?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: Dynamic SQL Pivoting &#8211; Stealing Anton&#8217;s Thunder</title>
	<atom:link href="http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/feed" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder</link>
	<description>Weblog for the AMIS Technology corner</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: srilag</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-481495</link>
		<dc:creator>srilag</dc:creator>
		<pubDate>Mon, 21 Nov 2011 09:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-481495</guid>
		<description>i hav a table of this format:

Id                   Descrip.
1                note1 note2 note3
2                note1 note2 note3
3                note1 note2 note3

i want the output as :

Id                   Descrip.

1                    note1
 note2
 note3

2                    note1
 note2
 note3</description>
		<content:encoded><![CDATA[<p>i hav a table of this format:</p>
<p>Id                   Descrip.<br />
1                note1 note2 note3<br />
2                note1 note2 note3<br />
3                note1 note2 note3</p>
<p>i want the output as :</p>
<p>Id                   Descrip.</p>
<p>1                    note1<br />
 note2<br />
 note3</p>
<p>2                    note1<br />
 note2<br />
 note3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satya</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-481435</link>
		<dc:creator>satya</dc:creator>
		<pubDate>Tue, 08 Nov 2011 14:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-481435</guid>
		<description>Hi,

Many thanks for this excellent code, when i am  using this code with storedproc following error is showing

PL/SQL: ORA-22905: cannot access rows from a non-nested table item

OPEN porec_rpt FOR
      SELECT *
        FROM TABLE
                (pivot
                    (   &#039;select * from document&#039;
                    )
                );

could you please help

Regards</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Many thanks for this excellent code, when i am  using this code with storedproc following error is showing</p>
<p>PL/SQL: ORA-22905: cannot access rows from a non-nested table item</p>
<p>OPEN porec_rpt FOR<br />
      SELECT *<br />
        FROM TABLE<br />
                (pivot<br />
                    (   &#8217;select * from document&#8217;<br />
                    )<br />
                );</p>
<p>could you please help</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Svenka</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-481393</link>
		<dc:creator>Svenka</dc:creator>
		<pubDate>Tue, 01 Nov 2011 18:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-481393</guid>
		<description>ORDER BY clause in passed query is not being executed. Any ideas why?</description>
		<content:encoded><![CDATA[<p>ORDER BY clause in passed query is not being executed. Any ideas why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olu</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-481371</link>
		<dc:creator>Olu</dc:creator>
		<pubDate>Thu, 27 Oct 2011 16:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-481371</guid>
		<description>Hi,
Many thanks for this fantastic piece of work
 I got the same ORA-29913: error in executing ODCITABLEDESCRIBE callout’ err. How may i resolve this.
With best wishes
Olu</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Many thanks for this fantastic piece of work<br />
 I got the same ORA-29913: error in executing ODCITABLEDESCRIBE callout’ err. How may i resolve this.<br />
With best wishes<br />
Olu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kannan</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-480882</link>
		<dc:creator>Kannan</dc:creator>
		<pubDate>Sat, 20 Aug 2011 21:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-480882</guid>
		<description>This is a brilliant piece conceptual explanation and code.  I had a similar  context about , delivering an output of  an arbitrary sql string , using parallel pipelined  functions which accepts a character string as input. I had a tough time to make it parallel as the plsql syntax more or less demanded an input ref cursor for the parallel operation to click , and I had to give it up.</description>
		<content:encoded><![CDATA[<p>This is a brilliant piece conceptual explanation and code.  I had a similar  context about , delivering an output of  an arbitrary sql string , using parallel pipelined  functions which accepts a character string as input. I had a tough time to make it parallel as the plsql syntax more or less demanded an input ref cursor for the parallel operation to click , and I had to give it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-480858</link>
		<dc:creator>Eugene</dc:creator>
		<pubDate>Thu, 11 Aug 2011 15:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-480858</guid>
		<description>Did you ever figure out the issue with not picking up new column values?</description>
		<content:encoded><![CDATA[<p>Did you ever figure out the issue with not picking up new column values?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DB</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-348937</link>
		<dc:creator>DB</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-348937</guid>
		<description>Great work guys! I used it and it helped a lot..
I got the same ORA-29913: error in executing ODCITABLEDESCRIBE callout’ err,
after digging in a bit I saw it is sensitive to reserved oracle words in the pivot column (the n-1 column). when I changed &#039;user&#039; and &#039;rowid&#039; values into &#039;username&#039; and &#039;row_id&#039; it worked fine.
another thing regarding that n-1 pivot column - can&#039;t extend beyond 30 chars or it will pop the &quot;invalid ... &quot; err.

after fixing those two all I was left with was admiring your nice work.</description>
		<content:encoded><![CDATA[<p>Great work guys! I used it and it helped a lot..<br />
I got the same ORA-29913: error in executing ODCITABLEDESCRIBE callout’ err,<br />
after digging in a bit I saw it is sensitive to reserved oracle words in the pivot column (the n-1 column). when I changed &#8216;user&#8217; and &#8216;rowid&#8217; values into &#8216;username&#8217; and &#8216;row_id&#8217; it worked fine.<br />
another thing regarding that n-1 pivot column &#8211; can&#8217;t extend beyond 30 chars or it will pop the &#8220;invalid &#8230; &#8221; err.</p>
<p>after fixing those two all I was left with was admiring your nice work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KT</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-348756</link>
		<dc:creator>KT</dc:creator>
		<pubDate>Tue, 18 Aug 2009 05:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-348756</guid>
		<description>Hi,
I tried implementing the code.Even after creating the type PIVOTIMPL,when I run the select statement,i get an error message that PIVOTIMPL is not declared.
Any inputs what could be the reason?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tried implementing the code.Even after creating the type PIVOTIMPL,when I run the select statement,i get an error message that PIVOTIMPL is not declared.<br />
Any inputs what could be the reason?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SUdarshan</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-270291</link>
		<dc:creator>SUdarshan</dc:creator>
		<pubDate>Wed, 28 Nov 2007 21:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-270291</guid>
		<description>I get the error &quot;PLS-00302 SETUROWID must be declared&quot; 

when dbms_types.typecode_urowid then
            dbms_sql.column_value( self.cur, i, ur1 );
            outset.seturowid( ur1 ); </description>
		<content:encoded><![CDATA[<p>I get the error &#8220;PLS-00302 SETUROWID must be declared&#8221; </p>
<p>when dbms_types.typecode_urowid then<br />
            dbms_sql.column_value( self.cur, i, ur1 );<br />
            outset.seturowid( ur1 );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Sinke</title>
		<link>http://technology.amis.nl/blog/1207/dynamic-sql-pivoting-stealing-antons-thunder/comment-page-1#comment-241204</link>
		<dc:creator>Patrick Sinke</dc:creator>
		<pubDate>Mon, 25 Jun 2007 15:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1207#comment-241204</guid>
		<description>For all you people experiencing problems with the ODCITABLEDESCRIBE callout, you might want to check two things. The number columns are quite strict: a column for the vertical axis, a column for the horizontal axis, and a third one for the result values. 
Secondly, I haven&#039;t found a way to parametize the query results, e.g. concatenating a parameter in the query. If you stick to that, it works like a charm!</description>
		<content:encoded><![CDATA[<p>For all you people experiencing problems with the ODCITABLEDESCRIBE callout, you might want to check two things. The number columns are quite strict: a column for the vertical axis, a column for the horizontal axis, and a third one for the result values.<br />
Secondly, I haven&#8217;t found a way to parametize the query results, e.g. concatenating a parameter in the query. If you stick to that, it works like a charm!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

