how to give for loop in sql 2005
i need to include two expressions in select query ,but i got error...and result of select query should store into a variale...give example please...
after 12 variables are there to keep store select output..and before insert i want to use for loop...give example