We are using the following query to get data from a table which is paritioned by "call_start_date"
Select field1, field2
From huge_tbl
Where Call_Start_Date >= current_date - 60
We found that we are not able to use the partition because of the "current_date" function and the ">=", this causes a performance problem in the query.
However, the above query is generated by Cognos ReportNet, we are not able to subsitute the "current_date" function with a constant date.
In this case, any (innovative) idea to make use of partition?
Bun
Select field1, field2
From huge_tbl
Where Call_Start_Date >= current_date - 60
We found that we are not able to use the partition because of the "current_date" function and the ">=", this causes a performance problem in the query.
However, the above query is generated by Cognos ReportNet, we are not able to subsitute the "current_date" function with a constant date.
In this case, any (innovative) idea to make use of partition?
Bun