-
Website
http://awads.net/wp/ -
Original page
http://awads.net/wp/2007/12/10/oracle-in-3-minutes-a-ticking-bomb/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
jgarry
3 comments · 1 points
-
Andy C
22 comments · 47 points
-
dahowlett
1 comment · 2 points
-
Don Seiler
9 comments · 1 points
-
davidhaimes
4 comments · 3 points
-
-
Popular Threads
Reconsider your data model if you are really going to compare two columns which obviously have the same content and meaning but are of different data type...
:-)
Patrick
Even if you nest the subquery, i.e.
<pre>
SELECT t1.col1, t2.col2
FROM (SELECT t.col1
FROM table1 t
WHERE filter_out_non_numbers) t1,
table2 t2
WHERE t1.col1 = t2.col1
</pre>
there is no guarantee that the inner subquery is logically materialized before the join (and the implicit conversion) happens.
One more thing, if the to_char is used in the WHERE clause, that will break the use of indexes which may impact performance. So, a function based index may be a good option here.