結果 : sql server table function if statement