<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: get Nth column of a table</title>
	<link>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Sun, 07 Sep 2008 06:21:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Vit Spinka</title>
		<link>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html#comment-4512</link>
		<pubDate>Wed, 15 Aug 2007 16:39:01 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html#comment-4512</guid>
					<description>Yes, it for example solves the classical problem: get month n from table with columns month01 to month12. The only difference is you don't specify the column by position, but by name. (Which is definitely safer.)</description>
		<content:encoded><![CDATA[<p>Yes, it for example solves the classical problem: get month n from table with columns month01 to month12. The only difference is you don&#8217;t specify the column by position, but by name. (Which is definitely safer.)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html#comment-4510</link>
		<pubDate>Wed, 15 Aug 2007 15:19:22 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html#comment-4510</guid>
					<description>is it related to getting the nth column? I wrote about unpivot last year here

&lt;a href="http://laurentschneider.com/wordpress/2006/11/pivot-table-2.html" rel="nofollow"&gt;pivot table&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>is it related to getting the nth column? I wrote about unpivot last year here</p>
<p><a href="http://laurentschneider.com/wordpress/2006/11/pivot-table-2.html" rel="nofollow">pivot table</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Vit Spinka</title>
		<link>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html#comment-4509</link>
		<pubDate>Wed, 15 Aug 2007 14:21:24 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2007/08/get-nth-column-of-a-table.html#comment-4509</guid>
					<description>And the ultimate solution - select value of the SAL column:
select empno, col, val
from emp 
  unpivot (val for col in (sal, comm))
where col='SAL';

(I had to choose sal and comm columns, as the unpivot clause needs identical datatype in processed columns).

Oh yes, 11g...</description>
		<content:encoded><![CDATA[<p>And the ultimate solution - select value of the SAL column:<br />
select empno, col, val<br />
from emp<br />
  unpivot (val for col in (sal, comm))<br />
where col=&#8217;SAL&#8217;;</p>
<p>(I had to choose sal and comm columns, as the unpivot clause needs identical datatype in processed columns).</p>
<p>Oh yes, 11g&#8230;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
