Need help on SQL Query in decode function performance tunning [message #550230] |
Sat, 07 April 2012 03:25 |
|
kgecdeep
Messages: 8 Registered: April 2012 Location: kolkata
|
Junior Member |
|
|
Hi,
I am using 1 sql query where i have to use decode function to compare the null vaues replaced with ? with another table field in the join condition as shown below in bold. When i am using this decode to compare the null values the query is taking long time . Without using this the query was giving output within 5 mins.
Please suggest how to tune this portion of the query , can i replace decode with some other fucntions/alternative to improve the performanxced
PLeasxe suggest.
select col1,col2......
from tab1,tab2......
where conditions,,,,,,
and
decode(tabx.colx,null,'?',tabx.colx) = taby.coly
|
|
|
|
|