Hi All,
I need to find out all entries which are done in the month of January. I can easily do so by using the to_char function and appropiate formats on my date field. But, the problem is that there is an index created on the date field. When I use to_char(create_ date,'mon') on that field, the index is not used(naturally) , and so a full table scan occurs. How can I override this. (Creating a function-based index would definitely not be a good solution for a single query)
I need to find out all entries which are done in the month of January. I can easily do so by using the to_char function and appropiate formats on my date field. But, the problem is that there is an index created on the date field. When I use to_char(create_ date,'mon') on that field, the index is not used(naturally) , and so a full table scan occurs. How can I override this. (Creating a function-based index would definitely not be a good solution for a single query)
Comment