結果 : select a column based on condition in sql