rudy, thanks for your fast reply, when I try to use your script, I get a syntax error
select respdate
, locator
, sum(iif((right(left(packet,23),2)='10',1,0)) as R10count
from responses
group
by respdate
, locator
Server: Msg 170, Level 15, State 1, Line 3
Line 3...