I have this table in MSSQL:
ID OP1 OP2 OP3
330 0 0 1
331 1 0 0
332 3 2 0
OP's are options. There can go from 1 to 9, 0 means that question was not answer.
How can i "sum" in a column called "Answered", like so:
ID OP1 OP2 OP3 T
330 0 0 1 1
331 1 0 0 1
332 3 2 0 2
A value over 0, means answered.
I try with CASE WHEN, IF statements.