I am trying to compute a field, and I want it to behave differently depending on whether one of the columns is null. I am using MySQL
CASE WHEN reply.replies <> NULL THEN 24/((UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(qcr.LAST_MOD_TIME)+3600)/3600)*(ces.EXPERT_SCORE+2.5*scs.SIMILARITY)*(EXP(-reply.replies)) ELSE 1 END as ANSWER_SCORE
Is this the correct syntax?
null sql mysql mysql-error-1064
Spencer Jan 27 '11 at 19:42 2011-01-27 19:42
source share