結果 : case statement syntax in postgresql