<?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 Analytic Functions</title>
	<atom:link href="http://structureddata.org/2007/08/24/oracle-analytic-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://structureddata.org/2007/08/24/oracle-analytic-functions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oracle-analytic-functions</link>
	<description>Data, Databases, Performance &#38; Scalability</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:05:12 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Greg Rahn</title>
		<link>http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-18256</link>
		<dc:creator>Greg Rahn</dc:creator>
		<pubDate>Fri, 27 May 2011 17:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-18256</guid>
		<description>Introduced in 11.2:
http://download.oracle.com/docs/cd/E11882_01/server.112/e17128/chapter1.htm#FEATURENO08750
Details:
http://download.oracle.com/docs/cd/E14072_01/server.112/e10592/functions087.htm
&lt;pre&gt;
SQL&gt; create table t1 (key varchar2(8), value varchar2(16));

Table created.

SQL&gt; insert into t1 values (&#039;A1&#039;,&#039;AAA&#039;);

1 row created.

SQL&gt; insert into t1 values (&#039;A1&#039;,&#039;BBB&#039;);

1 row created.

SQL&gt; commit;

Commit complete.

SQL&gt; select key, listagg(value,&#039;,&#039;) within group (order by key) as comma_list 
     from t1 group by key;

KEY              COMMA_LIST
---------------- --------------------------------------------------
A1               AAA,BBB
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Introduced in 11.2:<br />
<a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e17128/chapter1.htm#FEATURENO08750" rel="nofollow">http://download.oracle.com/docs/cd/E11882_01/server.112/e17128/chapter1.htm#FEATURENO08750</a><br />
Details:<br />
<a href="http://download.oracle.com/docs/cd/E14072_01/server.112/e10592/functions087.htm" rel="nofollow">http://download.oracle.com/docs/cd/E14072_01/server.112/e10592/functions087.htm</a></p>
<pre>
SQL> create table t1 (key varchar2(8), value varchar2(16));

Table created.

SQL> insert into t1 values ('A1','AAA');

1 row created.

SQL> insert into t1 values ('A1','BBB');

1 row created.

SQL> commit;

Commit complete.

SQL> select key, listagg(value,',') within group (order by key) as comma_list
     from t1 group by key;

KEY              COMMA_LIST
---------------- --------------------------------------------------
A1               AAA,BBB
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adil khan</title>
		<link>http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-18234</link>
		<dc:creator>Adil khan</dc:creator>
		<pubDate>Fri, 27 May 2011 07:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-18234</guid>
		<description>SQL&gt; select key, listagg(value,&#039;,&#039;) within group (order by key) as comma_list
    from t1
   group by key;
ORA-00923: FROM keyword not found where expected
 not working in oracle db</description>
		<content:encoded><![CDATA[<p>SQL&gt; select key, listagg(value,&#8217;,') within group (order by key) as comma_list<br />
    from t1<br />
   group by key;<br />
ORA-00923: FROM keyword not found where expected<br />
 not working in oracle db</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Rahn</title>
		<link>http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-11166</link>
		<dc:creator>Greg Rahn</dc:creator>
		<pubDate>Wed, 28 Apr 2010 18:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-11166</guid>
		<description>@Ashish
In 11.2 you can use the &lt;a href=&quot;http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions089.htm#SQLRF30030&quot; rel=&quot;nofollow&quot;&gt;LISTAGG&lt;/a&gt; function like such:

&lt;pre&gt;SQL&gt; select key, listagg(value,&#039;,&#039;) within group (order by key) as comma_list
  2  from t1
  3  group by key;

KEY COMMA_LIST
--- --------------------------------
A1  AAAA,BBBB
&lt;/pre&gt;

If you are on an older release see &lt;a href=&quot;http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:229614022562&quot; rel=&quot;nofollow&quot;&gt;Tom Kyte&#039;s example&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Ashish<br />
In 11.2 you can use the <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions089.htm#SQLRF30030" rel="nofollow">LISTAGG</a> function like such:</p>
<pre>SQL&gt; select key, listagg(value,',') within group (order by key) as comma_list
  2  from t1
  3  group by key;

KEY COMMA_LIST
--- --------------------------------
A1  AAAA,BBBB
</pre>
<p>If you are on an older release see <a href="http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:229614022562" rel="nofollow">Tom Kyte&#8217;s example</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish</title>
		<link>http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-11161</link>
		<dc:creator>Ashish</dc:creator>
		<pubDate>Wed, 28 Apr 2010 06:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-11161</guid>
		<description>Hi, i have a query suppose a table has two columns code ,scrip with two rows 
code,scrip 
A1   AAAA
A1   BBBB

Result should be 
A1,AAAA,BBBB

how can i get mentioned result. will anyone help me.</description>
		<content:encoded><![CDATA[<p>Hi, i have a query suppose a table has two columns code ,scrip with two rows<br />
code,scrip<br />
A1   AAAA<br />
A1   BBBB</p>
<p>Result should be<br />
A1,AAAA,BBBB</p>
<p>how can i get mentioned result. will anyone help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gints Plivna</title>
		<link>http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-27</link>
		<dc:creator>Gints Plivna</dc:creator>
		<pubDate>Mon, 27 Aug 2007 10:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://structureddata.org/2007/08/24/oracle-analytic-functions/#comment-27</guid>
		<description>I completely agree with you and
[self promotion start] :)
I have written an article about analytic functions (4 cases from real world reports) here
http://www.gplivna.eu/papers/using_analytic_functions_in_reports.htm
[self promotion end]</description>
		<content:encoded><![CDATA[<p>I completely agree with you and<br />
[self promotion start] :)<br />
I have written an article about analytic functions (4 cases from real world reports) here<br />
<a href="http://www.gplivna.eu/papers/using_analytic_functions_in_reports.htm" rel="nofollow">http://www.gplivna.eu/papers/using_analytic_functions_in_reports.htm</a><br />
[self promotion end]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching using disk: basic
Object Caching 351/352 objects using disk: basic

Served from: structureddata.org @ 2012-02-09 17:49:37 -->
