I'm working on a table that has 3008698
rows
exam_date
is a DATE
field.
But queries I run want to match only the month part. So what I do is:
select * from my_big_table where to_number(to_char(exam_date, 'MM')) = 5;
which I believe takes long because of function on the column. Is there a way to avoid this and make it faster? other than making changes to the table? exam_date
in the table have different date values. like 01-OCT-10 or 12-OCT-10...and so on