結果 : sql select with if else statement