0

I have a SQL query to get the count of matching input. When I run the query, it takes 28 seconds to get the count. Is there any faster way to get the matching count than simply using COUNT(Key).

Query

select 
    count(id) 
from 
    bibcontents
where 
    tagno = '245' 
    and normvalue like 'china %'
    or normvalue like '% china%'

Any help to this will be highly appreciated.

Thanks

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
DonMax
  • 970
  • 3
  • 12
  • 47

0 Answers0