結果 : if else in select statement postgresql