結果 : how to use temp table inside function in sql server