I have a table that I need to query based on a column. The column contains two types of values. First type has the first character as alphabet and then numerals. The second type has all numerals. I need to query the table based on this first character.
I tried to use substr(column,1,2)not in('0',’1',’2’,’3’,’4’,’5’,’6’,’7’,’8’,’9’). But it is taking a long time as the table contains more than 100 MM rows.
Is there any other efficient way to do this.
Thanks,
N
I tried to use substr(column,1,2)not in('0',’1',’2’,’3’,’4’,’5’,’6’,’7’,’8’,’9’). But it is taking a long time as the table contains more than 100 MM rows.
Is there any other efficient way to do this.
Thanks,
N