Hi,
I've read that using LIKE clause in the where query will inhibit index usage on the column.
E.g.
select * from ABC
where id like 'bc12%' and country='US';
If i have the above query and an index on column id, the query will not use the index. To allow index usage, the full id should be typed in the query. However, this will add to the inconvenience of end users as they will have to typed in the full id.
Is there any way which i can reduce the cost of having LIKE query?
Greatly appreciate it if you can show me a link or 2. Thanks in advance!