<?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"
	>
<channel>
	<title>Comments on: Oracle SQL tip</title>
	<atom:link href="http://awads.net/wp/2005/11/29/oracle-sql-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2005/11/29/oracle-sql-tip/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<pubDate>Tue, 07 Oct 2008 06:59:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: ronald</title>
		<link>http://awads.net/wp/2005/11/29/oracle-sql-tip/#comment-346</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Wed, 30 Nov 2005 06:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=166#comment-346</guid>
		<description>&lt;p&gt;This is indeed handy when you cannot create an index, thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is indeed handy when you cannot create an index, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/11/29/oracle-sql-tip/#comment-345</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Tue, 29 Nov 2005 17:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=166#comment-345</guid>
		<description>&lt;p&gt;Matt, you could. In fact, in the example above, if I do not have access to the query (I cannot change it for whatever reason), a FBI would be appropriate (if an index is needed). &lt;/p&gt;

&lt;p&gt;However, if I am the one who is writing a query (such as the one above) or if I can change an existing query, then I would definitely use the &lt;code&gt;trunc(date) + .99999&lt;/code&gt; trick (knowing that the date column is already indexed). It is simpler than a FBI  because I do not have to create yet another database object (the FBI) and I do not need to have all the &lt;a href="http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_510a.htm#2062463" rel="nofollow"&gt;prerequisites&lt;/a&gt; for creating a FBI (QUERY REWRITE for example), not to mention that in certain environments, issuing a DDL may involve a DBA, not that it is a bad thing, rather than it may take longer time to get things done.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Matt, you could. In fact, in the example above, if I do not have access to the query (I cannot change it for whatever reason), a FBI would be appropriate (if an index is needed). </p>
<p>However, if I am the one who is writing a query (such as the one above) or if I can change an existing query, then I would definitely use the <code>trunc(date) + .99999</code> trick (knowing that the date column is already indexed). It is simpler than a FBI  because I do not have to create yet another database object (the FBI) and I do not need to have all the <a href="http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_510a.htm#2062463" rel="nofollow">prerequisites</a> for creating a FBI (QUERY REWRITE for example), not to mention that in certain environments, issuing a DDL may involve a DBA, not that it is a bad thing, rather than it may take longer time to get things done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Ball</title>
		<link>http://awads.net/wp/2005/11/29/oracle-sql-tip/#comment-344</link>
		<dc:creator>Matt Ball</dc:creator>
		<pubDate>Tue, 29 Nov 2005 16:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=166#comment-344</guid>
		<description>&lt;p&gt;Couldn't you just create a function based index&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t you just create a function based index</p>
]]></content:encoded>
	</item>
</channel>
</rss>
