<?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: How to Write &#8220;Good&#8221; SQL</title>
	<atom:link href="http://oraqa.com/2006/01/17/how-to-write-good-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/</link>
	<description>Oracle Question and Answer</description>
	<pubDate>Tue, 06 Jan 2009 08:55:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Aldridge</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-52</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Wed, 18 Jan 2006 14:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-52</guid>
		<description>KP,

I think that this thread should be about general advice, not specific problems -- I'd suggest you go to a forum with the prob. Sorry,

DA.</description>
		<content:encoded><![CDATA[<p>KP,</p>
<p>I think that this thread should be about general advice, not specific problems &#8212; I&#8217;d suggest you go to a forum with the prob. Sorry,</p>
<p>DA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-51</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Wed, 18 Jan 2006 14:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-51</guid>
		<description>I don't know what he question is here, KD.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know what he question is here, KD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kirtandesai</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-48</link>
		<dc:creator>kirtandesai</dc:creator>
		<pubDate>Wed, 18 Jan 2006 13:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-48</guid>
		<description>True...
A question for u..
_________________________
SELECT *
FROM
 Budget_Table 
WHERE
SCEN_ID  IN ('FIN', 'ACT') AND  STAT_CD = 'ACT' AND  LED_ID  'EB_RC' 
AND
 Budget_Table.ROW_TMSTMP </description>
		<content:encoded><![CDATA[<p>True&#8230;<br />
A question for u..<br />
_________________________<br />
SELECT *<br />
FROM<br />
 Budget_Table<br />
WHERE<br />
SCEN_ID  IN (&#8217;FIN&#8217;, &#8216;ACT&#8217;) AND  STAT_CD = &#8216;ACT&#8217; AND  LED_ID  &#8216;EB_RC&#8217;<br />
AND<br />
 Budget_Table.ROW_TMSTMP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-41</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Wed, 18 Jan 2006 01:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-41</guid>
		<description>I'd say that you would have to know that, but it isn't within the intended scope of the article.</description>
		<content:encoded><![CDATA[<p>I&#8217;d say that you would have to know that, but it isn&#8217;t within the intended scope of the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kirtandesai</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-40</link>
		<dc:creator>kirtandesai</dc:creator>
		<pubDate>Wed, 18 Jan 2006 00:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-40</guid>
		<description>I agree,
SQL proficiency comes first. but one must know or find out a perfect time to shift gears from step 3 to step 6.

waht sya yuo?
Kd</description>
		<content:encoded><![CDATA[<p>I agree,<br />
SQL proficiency comes first. but one must know or find out a perfect time to shift gears from step 3 to step 6.</p>
<p>waht sya yuo?<br />
Kd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-39</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Tue, 17 Jan 2006 23:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-39</guid>
		<description>I'd agree that there are some prerequisites to good SQL performance -- for example that the design of the database be competently implemented, that appropriate indexes are in place, that you understand and make the best use of the optimizer.

I guess that point 3 is "Know when to stop tuning".

I'd be wary of directing people to materialized views as a performance enhancer at an early stage in their development experience. IMHO SQL proficiency comes first.</description>
		<content:encoded><![CDATA[<p>I&#8217;d agree that there are some prerequisites to good SQL performance &#8212; for example that the design of the database be competently implemented, that appropriate indexes are in place, that you understand and make the best use of the optimizer.</p>
<p>I guess that point 3 is &#8220;Know when to stop tuning&#8221;.</p>
<p>I&#8217;d be wary of directing people to materialized views as a performance enhancer at an early stage in their development experience. IMHO SQL proficiency comes first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kirtandesai</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-38</link>
		<dc:creator>kirtandesai</dc:creator>
		<pubDate>Tue, 17 Jan 2006 22:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-38</guid>
		<description>I think we can go to an extent on optimizing sql. following are the steps that i try to follow. Apart from the following, query optimization has a lot to do with client requirement especially in case of transactional databases. (believe it or not)
[Not in any particular order]
1. A reasonable normalization of the logical database design.
2. Use Efficient Index Design
3. some queries are resource-intensive by nature. keep in mind that they r not in-efficient. SQL, by nature, is also set-oriented.
4. Make changes to optimizer_mode, optimizer_index_cost_adj and optimizer_index_caching
5. Use the dbms_stats package to import specialized statistics. Ones which are geared to the current processing mode.
6. Use Oracle Materialized Views to pre-aggregate and pre-summarize data to reduce the amount of run-time table joins. For low-update databases, you can also pre-join tables together to improve processing speed. 

well...gotta go.. at work...will add some more to the list whenever possible.

ANY THOUGHTS DAVID?

KD</description>
		<content:encoded><![CDATA[<p>I think we can go to an extent on optimizing sql. following are the steps that i try to follow. Apart from the following, query optimization has a lot to do with client requirement especially in case of transactional databases. (believe it or not)<br />
[Not in any particular order]<br />
1. A reasonable normalization of the logical database design.<br />
2. Use Efficient Index Design<br />
3. some queries are resource-intensive by nature. keep in mind that they r not in-efficient. SQL, by nature, is also set-oriented.<br />
4. Make changes to optimizer_mode, optimizer_index_cost_adj and optimizer_index_caching<br />
5. Use the dbms_stats package to import specialized statistics. Ones which are geared to the current processing mode.<br />
6. Use Oracle Materialized Views to pre-aggregate and pre-summarize data to reduce the amount of run-time table joins. For low-update databases, you can also pre-join tables together to improve processing speed. </p>
<p>well&#8230;gotta go.. at work&#8230;will add some more to the list whenever possible.</p>
<p>ANY THOUGHTS DAVID?</p>
<p>KD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-33</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Tue, 17 Jan 2006 20:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-33</guid>
		<description>Of course ...</description>
		<content:encoded><![CDATA[<p>Of course &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kirtandesai</title>
		<link>http://oraqa.com/2006/01/17/how-to-write-good-sql/comment-page-1/#comment-31</link>
		<dc:creator>kirtandesai</dc:creator>
		<pubDate>Tue, 17 Jan 2006 19:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/17/how-to-write-good-sql/#comment-31</guid>
		<description>I agree to your views on this topic. I do believe that SQL should be able to perform at it's best. But also, there is a thin line between writing a top-notch efficient SQL and compromizing a lil bit on performance.
Can we also talk about that?</description>
		<content:encoded><![CDATA[<p>I agree to your views on this topic. I do believe that SQL should be able to perform at it&#8217;s best. But also, there is a thin line between writing a top-notch efficient SQL and compromizing a lil bit on performance.<br />
Can we also talk about that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
