結果 : for loop with select statement in sql server