thank everyone for your responses but I'm still having a hell of a time getting past the iff syntax error. The response in in a field called packet, that includes other info, but as you can see the response code (two numbers)part is parsed out. I'm wanting for R10count to give me a total count...
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...
I have a table (200,000+ records) with the following fields: Ticket, Member, Response (20 different responses available), Locator, and Resptime (date and time field). I would like to create another table with Response counts: that list (date, locator, and a field for each response (ie R1 count...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.