Data types matching between the table columns and queries is important - mismatches usually prevent the use of indexes.