Friends I'm trying to run a table from SQL but for some reason I do not get the data for each row of my table. Can someone tell me what I'm doing wrong?
declare @count int = 0,
@countb int = 1
set @count = (select count( * ) from stats_ddl)
while @countb <= @count
begin
declare @fechaMov varchar(50) = (select top(1) fecha + hora + importe from stats_ddl)
print 'fecha' + @fechaMov + ' ' + convert(varchar, @countb)
set @countb = @countb + 1
end
![](https://i.stack.imgur.com/9rbUl.png)