>while @counter >5 > begin > insert into Table1 values ('First' + @AddStr, ...) > insert into tabl2 values (SCOPE_IDENTITY(), ????, CAST(RAND()*10000000 as int)/RAND()) > set @counter = @counter - 1 >endRandom Symbol means that I have a third table with currently only a few records and I just want to get random info from this table to insert into the table2 :)