<?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: Analytic functions:</title>
	<atom:link href="http://kirtandesai.com/write/index.php/2007/05/10/analytic-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirtandesai.com/write/2007/05/10/analytic-functions/</link>
	<description></description>
	<lastBuildDate>Tue, 23 Aug 2011 14:40:20 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
	<item>
		<title>By: Kirtan Desai</title>
		<link>http://kirtandesai.com/write/2007/05/10/analytic-functions/comment-page-1/#comment-35</link>
		<dc:creator>Kirtan Desai</dc:creator>
		<pubDate>Thu, 26 Apr 2007 16:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/04/12/analytic-functions/#comment-35</guid>
		<description>Balraj,

Analytic Functions are performed on a resultant dataset. For example,

&lt;code&gt;
SQL&gt; SELECT
ENAME,
SAL,
DEPTNO,
MAX(SAL) OVER (PARTITION BY DEPTNO) MGR_SAL_BY_DEPT,
sal/MAX(SAL) OVER (PARTITION BY DEPTNO) *100   EMP_percent_SAL
FROM EMP
WHERE DEPTNO=20
ORDER BY DEPTNO;

In above query Oracle would apply the analytic function on the dataset returned by the query after applying *where DEPTNO=20* condition.
&lt;/code&gt;

So the answer to your question is YES. Not because partitioning will help the anaytic function perform better directly but because right use of partitioning may improve the way your query filters the the data before returning the final dataset.

Hope this helps.
Kirtan</description>
		<content:encoded><![CDATA[<p>Balraj,</p>
<p>Analytic Functions are performed on a resultant dataset. For example,</p>
<p><code><br />
SQL> SELECT<br />
ENAME,<br />
SAL,<br />
DEPTNO,<br />
MAX(SAL) OVER (PARTITION BY DEPTNO) MGR_SAL_BY_DEPT,<br />
sal/MAX(SAL) OVER (PARTITION BY DEPTNO) *100   EMP_percent_SAL<br />
FROM EMP<br />
WHERE DEPTNO=20<br />
ORDER BY DEPTNO;</p>
<p>In above query Oracle would apply the analytic function on the dataset returned by the query after applying *where DEPTNO=20* condition.<br />
</code></p>
<p>So the answer to your question is YES. Not because partitioning will help the anaytic function perform better directly but because right use of partitioning may improve the way your query filters the the data before returning the final dataset.</p>
<p>Hope this helps.<br />
Kirtan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balraj</title>
		<link>http://kirtandesai.com/write/2007/05/10/analytic-functions/comment-page-1/#comment-34</link>
		<dc:creator>Balraj</dc:creator>
		<pubDate>Thu, 26 Apr 2007 15:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/04/12/analytic-functions/#comment-34</guid>
		<description>The examples are simple and easy to understand. I have a question on how the table partitioning will impact the way the analytical functions work. Results are not going to change but performance of this query .. will it enhance?</description>
		<content:encoded><![CDATA[<p>The examples are simple and easy to understand. I have a question on how the table partitioning will impact the way the analytical functions work. Results are not going to change but performance of this query .. will it enhance?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

