select decode(jan,null,0,1) + decode(feb,null,0,1) + ...+decode(dec,null,0,1)
  from que 
 where que_id = '12'
   and year = 2002;