Sql-server – How to combine multiple columns values into one column value

sql server

I have few columns which has values either 1 or 0. Final result i have to store in one column(F),
Which should perform OR operation.

enter image description here

Best Answer

select case when a1 + a2 + a3 > 0 then 1
       else 0 end as F from table1