結果 : case with if statement in sql