query with trim function running more than 15 hours..
886413Dec 9 2011 — edited Dec 9 2011Hi,
I have one select query which is running more than 15 hours.I have many trim() functions in that.and i have index for some columns for the tables that i used in that query.but it is not considering those indexes..
select
DISTINCT
trim(A.x) x,
trim(B.y) y,....... from A,B
Can anyone tell why this query is taking more time?and is there any other way for using the trim function?
Thanks in advance..