Since the query return multiple records. I did a storedproc and then I was able to put the TRUNC in the where condition. so now I a able to use the index.
I am using WCF. I was trying to get the data to DataReader from the procedure but since DataReader is not serializable I can't use. I know I can use DataSet. but its heavy.
What is your suggestion on this. which is the best approach to get the results of a stored proc and transfer data in WCF.
thanks
Sam