hi all,
i am running a query which hits a huge table with a billion records and uses a like predicate...here is the query..
select *
from table T
where T.value like '% and %'
i cant ignore the starting % or ending % coz..the value can be anywhere in the string.. like andy...or durand or mandy..so as this particular query is going row by row and scanning the whole database..it is taking hell lot of time..to execute..
IS THERE ANY WAY TO USE SOME ALTERNATIVE FOR "LIKE" PREDICATE..WHICH SPEEDS UP MY QUERY..
thanks in advance..
logic4fun
i am running a query which hits a huge table with a billion records and uses a like predicate...here is the query..
select *
from table T
where T.value like '% and %'
i cant ignore the starting % or ending % coz..the value can be anywhere in the string.. like andy...or durand or mandy..so as this particular query is going row by row and scanning the whole database..it is taking hell lot of time..to execute..
IS THERE ANY WAY TO USE SOME ALTERNATIVE FOR "LIKE" PREDICATE..WHICH SPEEDS UP MY QUERY..
thanks in advance..
logic4fun