結果 : sql create field based on condition